嗨,大家好,我需要這個PHP代碼相當於Java代碼:什麼是來自java中的array_push的等價代碼?
<?php
$stack = array("orange", "banana");
array_push($stack, "apple", "raspberry");
print_r($stack);
?>
輸出是:
Array
(
[0] => orange
[1] => banana
[2] => apple
[3] => raspberry
)
謝謝您我是Java新手! – 2012-01-06 21:01:39
沒問題。歡迎來到Java和StackOverflow。 – 2012-01-06 21:16:56