Converting from VB6 - php XOR Problem

Reply

Join Date: Dec 2004
Posts: 1
Reputation: adam3223 is an unknown quantity at this point 
Solved Threads: 0
adam3223 adam3223 is offline Offline
Newbie Poster

Converting from VB6 - php XOR Problem

 
0
  #1
Dec 18th, 2004
Today is my first day learning php so be gentle :-|

In vb6
102 Xor 49 = 87

I can't get this result in php.

I think the php xor can only be 0 (well a blank string) or 1 so i don't understand what to do.
Any ideas?

Thanks in advance.
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 18
Reputation: demo is an unknown quantity at this point 
Solved Threads: 2
demo demo is offline Offline
Newbie Poster

Re: Converting from VB6 - php XOR Problem

 
0
  #2
Jan 3rd, 2005
Hi

I don't know how you are doing it, but it should be like this!

[php]
<?

echo 102 ^ 49;

?>
[/php]


John
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC