explode just takes a string and splits it into an array. It doesn't actually print anything.var_dump prints very detailed output. It will give you the types for every variable. print_r's output is more nicely formatted, but can be ambiguous. For example:print_r: hello => world
var_dump: hello => string(5) "world"
print_r: empty =>
var_dump: empty => null
or empty => string(0) ""
<?php
$ar = array('mefi'=>'metafilter','axmefi'=>'ask metafilter','more'=>array('metatalk','projects','wiki');
print_r($ar);
?>
will output
Array ( [mefi] => metafilter [axmefi] => ask metafilter [more] => Array ( [0] => metatalk [1] => projects [2] => wiki ) )posted by charmston at 11:14 PM on March 26, 2006