PHP
·
发表于 5年以前
·
阅读量:8296
±¾ÎÄʵÀý½²ÊoÁËphpͨ¹ýarray_push()º¯ÊýÌi¼Ó¶a¸o±aÁ¿µ½Êý×eÄ(C)βµÄ½¨¡£ÖÏi¸ø´o¼Ò¹(C)´o¼Ò²Î¿¼¡£¾ßÌaÖÎoÈçÏ£º
phpͨ¹ýarray_push()º¯ÊýÌi¼Ó¶a¸o±aÁ¿µ½Êý×eÄ(C)⣬array_pushº¯Êý½ÓÊÜÈÎÒaÊýÁ¿µÄ±aÁ¿Ìi¼Ó¡£
<?php
$alpha = array("a", "b", "c");
$final = array_push($alpha, "d","e");
print "There are $total elements in \$alpha<p>";
foreach ( $alpha as $val ) {
print "$val<br/>";
}
print "</p>";
?>
Ï£Íu±¾ÎÄËuÊo¶Ô´o¼ÒµÄphp³ÌÐoÉe¼ÆÓÐËu°iÖu¡£