3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = array( array( 'tag_name' => 'google' ), array( 'tag_name' => 'technology' ) ); $str; foreach ($input as $arr) { $str .= $arr["tag_name"] . ","; } //$ids = array_column($input, 'tag_name'); //$output = implode(',', $ids); echo $str;
based on Dld03
Output for 5.1.0 - 7.2.0
Notice: Undefined variable: str in /in/oTBuW on line 14 google,technology,
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: str in /in/oTBuW on line 12 Notice: Undefined variable: str in /in/oTBuW on line 14 google,technology,
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: str in /in/oTBuW on line 12 Notice: Undefined variable: str in /in/oTBuW on line 14 google,technology,