开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜