note 77979 added to reference.pcre.pattern.modifiers

From: Date: Sat, 22 Sep 2007 11:31:38 +0000
Subject: note 77979 added to reference.pcre.pattern.modifiers
Groups: php.notes 
Request: Send a blank email to php-notes+get-130689@lists.php.net to get a copy of this message
How would one distinguish the slashes added by preg_replace (with e modifier) from those that was in the actual string? example being: $orig_str= 'heres my C source; printf("Hello World\n");' Normally echoes like: printf("Hello World\n"); But after preg_replace: printf(\"Hello World\n\"); How can one see which was added and which was part of the original string? ---- Server IP: 69.147.83.197 Probable Submitter: 89.150.66.68 ---- Manual Page -- http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php Edit -- https://master.php.net/note/edit/77979 Del: integrated -- https://master.php.net/note/delete/77979/integrated Del: useless -- https://master.php.net/note/delete/77979/useless Del: bad code -- https://master.php.net/note/delete/77979/bad+code Del: spam -- https://master.php.net/note/delete/77979/spam Del: non-english -- https://master.php.net/note/delete/77979/non-english Del: in docs -- https://master.php.net/note/delete/77979/in+docs Del: other reasons-- https://master.php.net/note/delete/77979 Reject -- https://master.php.net/note/reject/77979 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#130689) next »