ello all,
Just a quick on this.
I'd like to replace the string [c:somevalue] within $string with the value contained within $this->config[somevalue][data].
I've tried:
$string = preg_replace("/(?is)\[c:(.*?)\]/",$this->config[$1][data],$string);
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /hsphere/local/home/carlheat/omPHP/classes/data.c.inc.php on line 23
Any ideas?
Thanks in advance ;-)