PHP: trying to create an array from an xdebug output
I'm trying to create an array to get this xdebug output:
'user_procedura_list' =>
array
0 => string '3' (length=1)
1 => 开发者_JAVA技巧string '5' (length=1)
But I don't know how..
I have tried:
$user_procedura_list[] = array(3,5);
$a['user_procedura_list'] = array(3,5);
Regards
Javi
$yourVariable['user_procedura_list'] = array(0=>"3", 1=>"5");
var_dump($yourVariable); //expected output
精彩评论