<code> <?php $ar=array(array(5,'x'),'q',5); echo implode($ar); ?></code>
Like the above code, how to print the contents of array(5,'x')?
<code> <?php $ar=array(array(5,'x'),'q',5); echo implode($ar); ?></code>
Like the above code, how to print the contents of array(5,'x')?
foreach($ar as $v){
<code> if(is_array($v)){ //如果值是一个数组 foreach($v as $vv){ echo $vv."<br>"; } }else{ //不是数组直接打印 echo $v."<br>"; } }</code>
!!!
var_dump Don’t you know?