【发布时间】:2013-08-18 16:45:02
【问题描述】:
我将一个 jQuery 数组传递给 PHP。我的回调函数在它是字符串时返回值,但在发送数组时中断。中断在 PHP 代码中。
我已经测试了以下内容:
$yes = array('this', 'is', 'an array');
echo is_array($yes);
返回“1”。
$yes = "array";
echo is_array($yes);
这会破坏代码。
为什么我没有返回“true”和“false”?
【问题讨论】: