PHP Code By tony
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <?php // 先创建只有一个元素的数组 $userAge = array('tony'=>26); echo $userAge['tony'].'<br>'; // 追加数组 $userAge['tony.src']=20; $userAge['xiaosi']=21; echo $userAge['tony.src'].'<br>'; echo $userAge['xiaosi'].'<br>'; // 打印数组实际元素 print_r($userAge); ?> |