Thread: operators
View Single Post
  #11  
Old 11-05-2006, 07:30 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
I tested the xor stuff, and I did this:

PHP Code:
function onCreated()
{
  
var1 1;
  
var2 2;
  echo((
var1 xor var2 "true" "false"));
}
// would return true 
and
PHP Code:
function onCreated()
{
  
var1 1;
  
var2 1;
  echo((
var1 xor var2 "true" "false"));
}
// would return false 
is this one example of how to use it?
by this it looks like it returns false if they are not the same,
and false if they are equal, so..?

if this is not right, got an example?
__________________
Reply With Quote