Page 1 of 1

Replace variables within a string

Posted: Thu Aug 05, 2010 3:09 pm
by avivm3
I thought I had read about a PHP function that takes a string, and any number of variables, and when outputting the string, each time it encounters a $name, it replaces it with [the next] variable provided through its parameters.

Am I dreaming or does such a function exist?

Re: Replace variables within a string

Posted: Thu Aug 05, 2010 3:12 pm
by AbraCadaver

Re: Replace variables within a string

Posted: Thu Aug 05, 2010 4:44 pm
by avivm3
Beautiful. Much thanks!