关于数组的一点困惑
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> $arr = array(); $num='hello world'; if(isset($num)) { $arr = $num; var_dump($arr); } else { $arr[] = array(1,2,3); var_dump($arr); }
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->string(11) "hello world"