PHP Snippet: Print an array

$mappings = array ('windows' => 'microsoft', 'ipod' => 'apple', 'corby' => 'samsum');
print_r($mappings);

output:

Array ( [windows] => microsoft [ipod] => apple [corby] => samsum )

Leave a Reply