|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-10-11 02:00 UTC] brad@php.net
[2000-10-11 02:39 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 23:00:02 2025 UTC |
When receving values from a form text field such as <INPUT name="hugo" type="text"> any entered ['] is preceedet with an [\] in the variable $hugo. Thus: [it's a shame] becomes "it\'s a shame". 1. I don't see any reason for it. 2. I tried to solve the problem using preg_replace: preg_replace('~\/\'~','\'',$hugo); ...without any effect. preg_replace('~\134\'~','/',$hugo); indeed works fine! An error?!