Community Page
- www.fanphp.com Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- And here is my list of recently published web development related books: http://www.riaguy.com/books/ You can download them from rapidshare
- Nice one :), i am also interested in starting development on Facebook applications, can u please refer me for some book or website that helps me to quickly start some small scale application...
- i want the zend certification books.i you will help me this will be very helpful .thanking you
- i want the info about zend certification.please tell me how to study for it and which books i have to reffer
- i know how to achieve RHCE certification. so don't hesitate to communicate with me mail me lipson12@yahoo.com
Jump to original thread »
I have found a code of php like that.
what is the Output of this code?
<?php
$x = 0;
echo -$x;
?>
Answer: -1
But i want to know why and how?????
with regards
masud ... Continue reading »
what is the Output of this code?
<?php
$x = 0;
echo -$x;
?>
Answer: -1
But i want to know why and how?????
with regards
masud ... Continue reading »
1 year ago
try echo -$x + 1; will be 0
1 year ago
It actually shows 0 not -1.
It shows -1 if you use ~$x.
Its a bitwise binary not which negates all the bits of an integer,operates on bit level and negates all the bits of 0.
Stay cool.
Shakil@evoknow
1 year ago
hope you guys will continue to visit my blog.
thanks