From de8f418b79afe9e7ca6a74c5a68cb97809e684bb Mon Sep 17 00:00:00 2001 From: Etienne Kneuss Date: Sun, 4 May 2008 20:54:38 +0000 Subject: [PATCH] Add example with mixed types for ^ git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@259056 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/operators.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/language/operators.xml b/language/operators.xml index 925d4971fe..2817d5356b 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -1,5 +1,5 @@ - + Operators @@ -392,6 +392,12 @@ echo "12" ^ "9"; // Outputs the Backspace character (ascii 8) echo "hallo" ^ "hello"; // Outputs the ascii values #0 #4 #0 #0 #0 // 'a' ^ 'e' = #4 + +echo 2 ^ "3"; // Outputs 1 + // 2 ^ ((int)"3") == 1 + +echo "2" ^ 3; // Outputs 1 + // ((int)"2") ^ 3 == 1 ?> ]]>