Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

print array php

<?php
$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
echo "<pre>";
print_r ($a);
echo "</pre>";
?>
  
Output:

Array
(
    [a] => apple
    [b] => banana
    [c] => Array
        (
            [0] => x
            [1] => y
            [2] => z
        )
)
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #print #array #php
ADD COMMENT
Topic
Name
1+2 =