• Real Quick PHP Question
    0 replies, posted
I figured no one wants the programming section full of quick questions, and Fast Threads can be questions on any topic, so here it goes. I just want to know what exactly happens when you use the "0x0" string in a statement. I figure it's something to to with bits, but I don't know what it does exactly, or how to reverse the effect. So, if I had this: [php] <?php $var=0; $var += '0x0'."t"; $var += '0x0'."e"; $var += '0x0'."s"; $var += '0x0'."t"; echo $var; ?> [/php] It prints the value 14. The value also changes if I change the bits '0x1', 0x10', etc...
Sorry, you need to Log In to post a reply to this thread.