- print_r: documentation ( source)
<?php
$map = array('Yes' => true, 'No' => false);
$input = array('va' => 'No', 'firsttime' => 'Yes', 'name' => 'foobar', 'price' => 123000);
foreach ($input as $key => $value) {
$input[$key] = array_key_exists($value, $map) ? $map[$value] : $value;
}
print_r($input);