Last active
October 5, 2019 14:13
-
-
Save animista01/6630934 to your computer and use it in GitHub Desktop.
Store values from foreach loop into array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = array(); | |
foreach ($tareas as $tarea) { | |
$data[] = $tarea; | |
} | |
var_dump($data); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks alot it solve my big problem