Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


hellonearthisman

1819 posts

Uber Geek
+1 received by user: 52

Trusted

#23857 10-Jul-2008 11:15
Send private message

I am trying to perform a not on a character in php,  like I did in asm where it would take all the bits and change them 0's to 1 and 1's to 0's

Have I missed something as I can see how to do it in php.

Create new topic
ajobbins
5053 posts

Uber Geek
+1 received by user: 1279

Trusted

  #146013 10-Jul-2008 11:17
Send private message

post code?



chiefie
I iz your trusted friend
5877 posts

Uber Geek
+1 received by user: 151

Retired Mod
Trusted
Lifetime subscriber

#146014 10-Jul-2008 11:21
Send private message

~ if it is a bitwise operator
! if it is a logical operator

PHP Operators

Google is your friend!!!!




Internet is my backyard...

 

«Geekzone blog: Tech 'n Chips Takeaway» «Personal blog: And then...»

 

Please read the Geekzone's FUG

 


hellonearthisman

1819 posts

Uber Geek
+1 received by user: 52

Trusted

  #146118 10-Jul-2008 14:12
Send private message

Thanks heaps,  bitwise is the key that  I was looking for.
http://nz2.php.net/manual/en/language.operators.bitwise.php

My searching for 'php not' was not very successful and searching php.net for 'not also was also ....

Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.