- print_r: documentation ( source)
<?php
$sql = array("inUserID" => "lemon", "inCustID" => "orange", "btAll" => "banana", "btPermPref" => "apple", "inDisplay"=>"toast");
function pram_alter($array, $key)
{
foreach ($array as $value){
echo "$key= '$key'";
}
}
//$temp=array();
$temp=array(pram_alter($sql, 'pram_alter'));
echo print_r($temp);
?>