drisate Posted September 9, 2008 Share Posted September 9, 2008 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 More sharing options...
effigy Posted September 9, 2008 Share Posted September 9, 2008 "getJobs('$2/$3', 'CAL')" Link to comment https://forums.phpfreaks.com/topic/123496-preg_replace/#findComment-637816 Share on other sites More sharing options...
sasa Posted September 9, 2008 Share Posted September 9, 2008 try[code=php:0]$content = preg_replace('/(\[CAL\=([0-9]*\/[0-9]*)\])/ie', "getJobs('$2', 'CAL')", $content); not tested Link to comment https://forums.phpfreaks.com/topic/123496-preg_replace/#findComment-637824 Share on other sites More sharing options...
drisate Posted September 9, 2008 Author Share Posted September 9, 2008 nice works great sasa! Link to comment https://forums.phpfreaks.com/topic/123496-preg_replace/#findComment-637828 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.