|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-01-15 10:59 UTC] sander@php.net
[2004-03-31 11:32 UTC] php at derailer dot org
[2004-08-02 21:22 UTC] abodeman at yahoo dot com
[2004-08-02 21:23 UTC] jhelzer at cse dot unl dot edu
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 14:00:01 2025 UTC |
<? $text=' something and one " '; echo("$text\n"); $text=preg_replace("/(.*)/e","'\\1'",$text); echo($text); ?> output: something and one " something and one \" - in executable mode preg_replace adds a backslash. Why? I think it shouldn't do anything with. - it's the same when I use ' instead ", but switched.