如何写这个php数组输出一个输入

时间:2015-01-04 22:29:40

标签: php arrays

我有一些函数

的数组输出
Array ( [0] => Array ( [title] => [layout] => b [limit] => 10 [top_layout] => 0 [top_limit] => 2 [time] => 0 [order] => date [manual] => [action] => pagination [pagination] => numeric [action_link_text] => View all [action_link_url] => http:// ) )

我如何将其写为某个变量的输入 是吗?

$var = array (array ('title' => 'layout' => 'b', 'limit' => 10, 'top_layout' = > '0', 'top_limit' => '2', 'time' => '0' , 'order' = > 'date' , 'manual' = > 'action => 'pagination' , 'pagination' , 'numeric' , 'action_link_text' = > 'View all', 'action_link_url' => 'http://')) 

1 个答案:

答案 0 :(得分:0)

我认为你正在寻找类似的东西:

$var = print_r($input, true);