RE: [PHP] Bizarre Error when Using Escape Codes

From: Date: Thu, 17 Apr 2003 00:29:57 +0000
Subject: RE: [PHP] Bizarre Error when Using Escape Codes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144211@lists.php.net to get a copy of this message
> If I type a string with an escape code, i.e. "\n" or "\n\r" I get the > following errors: > > Warning: Unexpected character in input: '\' (ASCII=92) state=1 on line x > > Parse error: parse error, unexpected T_STRING, expecting ',' or ';' on > line x Show the actual code on that line. You probably have the \n or \r outside of the quotes for the string. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#144211) next »