Jump to content

Preg_Replace $1 <-- Function Parsing


Recommended Posts

you know in preg_replace, you can use "(.+?)" and then in the next param, use "$1" well i need to parse that "$1" variable into a function...

see right now it uses it inside the quotes. but when i take it outside the quotes it has errors.

 

it is currently:

"etc $1 etc"

i tried:

"etc " . name($1) . " etc"

but that creates an error, i tried the function inside the quotes.

nothing.

 

any ideas?

Link to comment
https://forums.phpfreaks.com/topic/55024-preg_replace-1/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.