2011-02-28 52 views
0

我試圖創建一個數組來得到這個Xdebug的輸出:PHP:試圖從Xdebug的輸出創建數組

'user_procedura_list' => 
    array 
     0 => string '3' (length=1) 
     1 => string '5' (length=1) 

但我不知道該怎麼..

我有嘗試:

$user_procedura_list[] = array(3,5); 
$a['user_procedura_list'] = array(3,5); 

問候

哈維

回答

2
$yourVariable['user_procedura_list'] = array(0=>"3", 1=>"5"); 
var_dump($yourVariable); //expected output