| Autor | Zpráva | ||
|---|---|---|---|
| Koloniada Profil * |
#1 · Zasláno: 16. 6. 2014, 18:10:47
|
||
| juriad Profil |
#2 · Zasláno: 16. 6. 2014, 18:17:12
Protože operátor == provádí přetypování.
If you compare a number with a string or the comparison involves numerical strings, then each string is converted to a number and the comparison performed numerically. http://www.php.net//manual/en/language.operators.comparison.php Otázkou je tedy proč je: var_dump((int)'e1fd525df'); # int(0) The value is given by the initial portion of the string. If the string starts with valid numeric data, this will be the value used. Otherwise, the value will be 0 (zero). |
||
|
Časová prodleva: 12 let
|
|||
0