And a string like this:
$str = ‘{$sender} sent you {$quantity} objects on {$date}’;
I want to replace every {$variable} with $par[‘variable’]
I know I have to use preg_replace()
How can I do?
Thanks
Author
Posts
Viewing 1 post (of 1 total)
The topic ‘Replacing parameters in string’ is closed to new replies.
×
You must be logged in before using WishList. To login click here