954,157 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Converting from VB6 - php XOR Problem

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.

adam3223
Newbie Poster
1 post since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

Hi

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

[php]
<?

echo 102 ^ 49;

?>
[/php]


John

demo
Newbie Poster
18 posts since Jan 2005
Reputation Points: 10
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You