- var_dump: documentation ( source)
<?php
$dataset = array("a" > "one", "b" > "two", "c" => "three");
function foo($a, $b) {
return false;
}
var_dump($dataset, "\n");
foreach($dataset as $key => $val) {
$dataset[$key] = foo($val, 'bar');
var_dump($dataset[$key], $key, $val, "\n");
}