• Skip to primary navigation
  • Skip to main content

Genesis Community

Resources for Genesis WordPress Theme Users

  • Facebook
  • Twitter
  • Slack
  • Wiki
  • Login
You are here: Home / Wikis / PHP / Store values from foreach loop into array

Store values from foreach loop into array

$data = array();
foreach ($tareas as $tarea) {
    $data[] = $tarea;
}
var_dump($data);
Source: https://gist.github.com/animista01/6630934

Posted by: Sridhar Katakam Category: PHP

« Remove http or https from URLs

Copyright © 2025 · Genesis Sample on Genesis Framework · WordPress · Log in