preg_replace question

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Here is the code i have to read stings that are set out as such -

$pattern = '//';
$replace = '$';
$template = preg_replace($pattern, $replace, $template);

This outputs $STRING

Anybody know how i can get the $STRING to $string within the preg_replace.
 I have tried:
$replace = '$'.strtolower('');
but it doenst work.

Any help much appreciated.


Re: preg_replace question

willl69 wrote:
Quoted text here. Click to load it example 5.

E. Dronkert

Site Timeline