note 65333 added to function.preg-replace

From: Date: Fri, 28 Apr 2006 20:45:43 +0000
Subject: note 65333 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-110037@lists.php.net to get a copy of this message
In the example 1, "Convert HTML to text" you see as the search pattern: '@&#(\d+);@e'); // evaluate as php and its replace string as: 'chr(\1)'); This last didn't produce the desired result. The correct string is: chr('\1')); ---- Server IP: 148.206.80.9 Probable Submitter: 201.114.172.134 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- http://master.php.net/note/edit/65333 Del: integrated -- http://master.php.net/note/delete/65333/integrated Del: useless -- http://master.php.net/note/delete/65333/useless Del: bad code -- http://master.php.net/note/delete/65333/bad+code Del: spam -- http://master.php.net/note/delete/65333/spam Del: non-english -- http://master.php.net/note/delete/65333/non-english Del: in docs -- http://master.php.net/note/delete/65333/in+docs Del: other reasons-- http://master.php.net/note/delete/65333 Reject -- http://master.php.net/note/reject/65333 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#110037) next »