preg_replace модификтор e и $thishttp://softtime.ru/forumpreg_replace модификтор e и $thishttp://softtime.ru/forum/read.php?id_forum=1&id_theme=81758#post486955После долгих мучений нашел что мне надо http://blog.webproduction.com.ua/preg_replace+с+модификатором+e/ Всем спасибо.preg_replace модификтор e и $thisTue, 19 Jul 2011 17:33:23 +0300ntro123preg_replace модификтор e и $thishttp://softtime.ru/forum/read.php?id_forum=1&id_theme=81758#post486954потому что preg_replace должен в $code (где содержиться "1+ya_pages_in_index+1") замени "ya_pages_in_index" на $this-"ya_pages_in_index (в котором содержиться "123") Разуметься я упустил...preg_replace модификтор e и $thisTue, 19 Jul 2011 16:53:47 +0300ntro123preg_replace модификтор e и $thishttp://softtime.ru/forum/read.php?id_forum=1&id_theme=81758#post486951А почему оно должно показать показать 1+123+1?preg_replace модификтор e и $thisTue, 19 Jul 2011 16:34:04 +0300Саняpreg_replace модификтор e и $thishttp://softtime.ru/forum/read.php?id_forum=1&id_theme=81758#post486950class Value { public $ya_pages_in_index='123'; } class SEOcode extends Value { public function get() { $code='1+ya_pages_in_index+1' echo preg_replace("#ya_pages_in_index#e", "$this-"$1", $code);...preg_replace модификтор e и $thisTue, 19 Jul 2011 16:32:00 +0300ntro123preg_replace модификтор e и $thishttp://softtime.ru/forum/read.php?id_forum=1&id_theme=81758#post486945Приведите полный код. " как вызвать функцию из класса?( Это очень просто. Нужно объявить метод статическим и его можно будет...preg_replace модификтор e и $thisTue, 19 Jul 2011 16:09:06 +0300Саняpreg_replace модификтор e и $thishttp://softtime.ru/forum/read.php?id_forum=1&id_theme=81758#post486941Никто не сталкивался?preg_replace модификтор e и $thisTue, 19 Jul 2011 15:27:24 +0300ntro123preg_replace модификтор e и $thishttp://softtime.ru/forum/read.php?id_forum=1&id_theme=81758#post486930Добрый день. $trol=explode('|', $this-"param); while (list($key, $val) = each($trol)) { $trol="#($val)#e"; } echo preg_replace($trol, "$this-"$1()", $code); Выводит ошибочку типо ...preg_replace модификтор e и $thisTue, 19 Jul 2011 14:09:49 +0300ntro123