Jump to content

preg_replace()


drisate

Recommended Posts

I have this error

 

Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: getJobs(2008.'/'.01, 'CAL') in /home/direct/public_html/administrator/components/com_acajoom/classes/class.jmail.php on line 192

 

I am trying to get $2 and $3 to be send as one value in getJobs

 

$content = preg_replace('/(\[CAL\=([0-9]*)\/([0-9]*)\])/ie', "getJobs($2.'/'.$3, 'CAL')", $content);

 

Anybody careto help? i am out of options ... i think i tryed everypossible syntaxes ...

Link to comment
https://forums.phpfreaks.com/topic/123496-preg_replace/
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.