preg_replace();
Ok, PHP-heads... a challenge for you.
I haven't got a clue how the expressions work in preg_replace($search, $replace, $subject);
Basically, I need to extract "username" from $search, so I can use it in $replace.
Any other text that is surrounding the custom tag as shown above, must be returned as is.
Any ideas?
I haven't got a clue how the expressions work in preg_replace($search, $replace, $subject);
Basically, I need to extract "username" from $search, so I can use it in $replace.
$subject = "[lj user=username]";
Any other text that is surrounding the custom tag as shown above, must be returned as is.
Any ideas?
