|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-02-05 04:54 UTC] jury at elkor dot lv
Invalid Calculation when you make XOR operation between strings like: "12" ^ "9". It needs to change type from "String" => "Double" PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 08:00:02 2025 UTC |
Some results (exactly the same with ZE1 and 2): echo "12" ^ "9"; // output: nothing echo "hello"."12" ^ "9"; // output: Q echo "hello12" ^ "9"; // output: Q echo "hello".("12" ^ "9"); // output: hell Yes, that's hell and not hello!