change value in an array while processing....
Posted: Wed Jun 08, 2005 7:44 am
I want to change the value of the array items to the formated values. sorry for the dumb question, I NEVER use non numerically indexed arrays.
Thanks........
JCART | Please use
Code: Select all
$account = array("Id"=>200001111, "HomePhone"=>'904-654-6804');
reset($account);
while(list($key, $value) = each($account))
{
if($key == "HomePhone")
{
$value = format__number($value);//this is where i want to change the value to the formated one
}
else
$value = format_sting($value);//this is where i want to change the value to the formated one
}JCART | Please use
Code: Select all
tags when posting php code. Review [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color][/size]