3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $config = array( "PYRAMID_RESULT_SHOW_CATEGORY" => array( 2, // 体験入店可能 7, // 写メでの面接可能 36, // 交通費支給 58, // 託児所完備 60, // 制服貸与 68, // 未経験者歓迎 ), "PYRAMID_RESULT_SHOW" => array( 2, // 体験入店可能 7, // 写メでの面接可能 36, // 交通費支給 58, // 託児所完備 60, // 制服貸与 68, // 未経験者歓迎 ), ); var_dump($config["PYRAMID_RESULT_SHOW_CATEGORY"]); $param["id"]= array(1,2,3); foreach($param as $key => $value){ var_dump($key . ' ' . $value . "\n"); }
based on b0bcZ
Output for 5.6.0 - 7.3.0rc4
array(6) { [0]=> int(2) [1]=> int(7) [2]=> int(36) [3]=> int(58) [4]=> int(60) [5]=> int(68) } Notice: Array to string conversion in /in/g7LCh on line 27 string(9) "id Array "