3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $newdata = array ( 'wpseo_title' => 'test', 'wpseo_desc' => 'test', 'wpseo_metakey' => 'test' ); foreach ($newdata as $key => $newdat) { echo $newdat."<br/>"; } // for recipe $md_array["recipe_type"][] = $newdata; //for cuisine $md_array["cuisine"][] = $newdata; array_push($md_array["cuisine"],$newdata); //var_dump($md_array["cuisine"]); ?>
Output for 4.3.0 - 7.1.10
test<br/>test<br/>test<br/>