PHP 8.3.21 Released!

Voting

: six minus zero?
(Example: nine)

The Note You're Voting On

yhusky at qq dot com
6 years ago
There is a mistake in the note by egingell at sisna dot com 12 years ago. The tow dimensional array will output "d,e,f", not "a,b,c".

<?php
$stack
= array('a', 'b', 'c');
array_push($stack, array('d', 'e', 'f'));
print_r($stack);
?>

The above will output this:
Array (
[0] => a
[1] => b
[2] => c
[3] => Array (
[0] => d
[1] => e
[2] => f
)
)

<< Back to user notes page

To Top