siddscool19 Posted January 4, 2012 Share Posted January 4, 2012 I was reading a program code and I came across this line of code $result = 0x01111111; when I tried to echo the $result I got this output 17895697 I am not able to get what this operator "x" actually does.. If someone can help me understand. Thanks Link to comment https://forums.phpfreaks.com/topic/254323-about-this-operator-x/ Share on other sites More sharing options...
sandeep529 Posted January 4, 2012 Share Posted January 4, 2012 its hexadecimal notation... 0x01111111 = 17895697 Please see language.types.integer.php Link to comment https://forums.phpfreaks.com/topic/254323-about-this-operator-x/#findComment-1304066 Share on other sites More sharing options...
siddscool19 Posted January 4, 2012 Author Share Posted January 4, 2012 Yup I got it already, thanks for the reply anyway Link to comment https://forums.phpfreaks.com/topic/254323-about-this-operator-x/#findComment-1304069 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.