What does not work:
(int)08 == (int)09==0
But is that so?
(int)07==7 (int)06==6
08 is in octal base (because it starts with 0), so it is not valid. See the documentation .
because 08and 09are not valid octal numbers. see warning in docs .
08
09
.
// Syntax error //(int)08 == (int)09==0 // This works (int)08==0; (int)09==0; // This also works (int)08 == ((int)09==0);
(int)
intval().
0x.
,
$num = (int)0x9 $num == 9
Source: https://habr.com/ru/post/1724950/More articles:Is there a good semaphore for XNA on the XBox 360? - multithreadingDetecting TWebBrowser Update Event in Delphi 2009 - refreshapache ivy - what is in ivysettings.xml - antCurl and cookies - phpPHP and cURL cookies - phpUITableViewCell lock shortcut icon - iphoneHow to bind SQL variables in php? - phphtml page does not receive cookies via libcurl - phpsetting cookie through curl - phpIs it possible to see through which child class the parent static method called Java was? - javaAll Articles