开发者

PHP: trying to create an array from an xdebug output

开发者 https://www.devze.com 2023-02-14 11:16 出处:网络
I\'m trying to create an array to get this xdebug output: \'user_procedura_list\' => array 0 => string \'3\' (length=1)

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

精彩评论

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