|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-03-29 15:29 UTC] admin at students-fhtw dot de
str_replace() produces different output on windows and on linux:
php versions:
windows: 4.1.1
linux: 4.0.5
situation:
I wanted to delete all quotations in a string, that came from GET query.
script:
on linux:
$getQuery = str_replace("\"", "", $getQuery);
on windows:
$getQuery = str_replace("\\\"", "", $getQuery);
conclusion:
On windows, the character [\"] is not seen as one character but as two.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 02:00:02 2025 UTC |
??? On linux $getQuery = str_replace("\"", "", $getQuery); On windows $getQuery = str_replace("\"", "", $getQuery); \\ means \ \" means " so \\\" means \".