Skip to content

Instantly share code, notes, and snippets.

@animista01
Last active October 5, 2019 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save animista01/6630934 to your computer and use it in GitHub Desktop.
Save animista01/6630934 to your computer and use it in GitHub Desktop.
Store values from foreach loop into array
<?php
$data = array();
foreach ($tareas as $tarea) {
$data[] = $tarea;
}
var_dump($data);
?>
@ariandi22
Copy link

great, you save my hell works

@mubashirmalik1
Copy link

thanks alot it solve my big problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment