PHP Array

<?php
	$testArray = array();

	array_push($testArray, array( 'name' => 'Ross', 'age' => 25 ));
	array_push($testArray, array( 'name' => 'Ross', 'age' => 25 ));

	echo "<pre>";
	print_r($testArray);
	echo "</pre>";
?>

Output :

Array
(
    [0] => Array
        (
            [name] => Ross
            [age] => 25
        )

    [1] => Array
        (
            [name] => Ross
            [age] => 25
        )

)

發表迴響