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.


1818 posts

Uber Geek
+1 received by user: 52

Trusted

Topic # 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
Awesome
4810 posts

Uber Geek
+1 received by user: 1062

Trusted
Subscriber

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

post code?

I iz your trusted friend
5802 posts

Uber Geek
+1 received by user: 140

Mod Emeritus
Trusted
Lifetime subscriber

Reply # 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

 




1818 posts

Uber Geek
+1 received by user: 52

Trusted

  Reply # 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

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



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.

Alternatively, you can receive a daily email with Geekzone updates.