View Single Post
Old 02-01-2011, 09:24 PM   #1 (permalink)
Torsten
The Wanderer
 
Join Date: May 2010
Posts: 7
Thanks: 0
Torsten is on a distinguished road
Default Parse error: syntax error, unexpected T_ECHO in -> regexp code on line 1

Code:
Parse error: syntax error, unexpected T_ECHO in D:\Webserver\Projekte\de.unique.labs.tests\Template System\class\extensions\extensionArrayParse.php(8) : regexp code on line 1

Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: echo 'testArray' in D:\Webserver\Projekte\de.unique.labs.tests\Template System\class\extensions\extensionArrayParse.php on line 8
The Code Parse is

Code:
while( preg_match( "/" .$this->leftDelimiterF ."loop name=\"(.*)\"".$this->rightDelimiterF ."/isUe", $this->template)){
			$this->template = preg_replace( "/" .$this->leftDelimiterF ."loop name=\"(.*)\""						.$this->rightDelimiterF."/isUe",
				"echo '\\1'",
				$this->template );
			
}
Could someone help me I don't find the mistake
__________________
Sorry for my Bad English xD Iam german ^^
Torsten is offline  
Reply With Quote