Hi,

I have array variable and string variable.
I want to replace value of array by key of array in string variable with preg_replace().


Example :
$message=array(
'name'=>'My Computer',
'version'=>'1.0'
);
$strValue="I am $name,build version $version\n";

How's to replace?

Yingyos

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to