Welcome Guest, Not a member yet? Register   Sign In
preg replace (again -.-)
#4

[eluser]Young Caveman[/eluser]
[quote author="xwero" date="1218223462"]There is a difference between a surrounding a string with a single or a double quote. With double quotes php checks if there are variables and with single quotes it doesn't.[/quote]

Code:
$layout = preg_replace('~{(.+?)}~', '<div class="$1">'.$this->replace("$1").'</div>', $layout);

Like this?
If you meant that, it did not work. :down:


Messages In This Thread
preg replace (again -.-) - by El Forum - 08-08-2008, 08:20 AM
preg replace (again -.-) - by El Forum - 08-08-2008, 08:24 AM
preg replace (again -.-) - by El Forum - 08-08-2008, 08:26 AM
preg replace (again -.-) - by El Forum - 08-08-2008, 08:27 AM
preg replace (again -.-) - by El Forum - 08-08-2008, 08:28 AM
preg replace (again -.-) - by El Forum - 08-08-2008, 08:37 AM
preg replace (again -.-) - by El Forum - 08-08-2008, 08:38 AM
preg replace (again -.-) - by El Forum - 08-08-2008, 08:56 AM
preg replace (again -.-) - by El Forum - 08-08-2008, 09:01 AM
preg replace (again -.-) - by El Forum - 08-08-2008, 09:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB