От: | gress | ||
Дата: | 14.02.17 15:04 | ||
Оценка: |
HH>блин или ничего не понимаю или ...HH>Introduction ¶
HH>PHP supports eight primitive types.
HH>Four scalar types:
HH>boolean
HH>integer
HH>float (floating-point number, aka double)
HH>string
HH>Three compound types:
HH>array
HH>object
HH>callable
HH>And finally two special types:
HH>resource
HH>NULL
HH>false == "" == "0" == 0
HH>
От: | HomoHabilis | ||
Дата: | 14.02.17 14:47 | ||
Оценка: |
блин или ничего не понимаю или ...Introduction ¶
PHP supports eight primitive types.
Four scalar types:
boolean
integer
float (floating-point number, aka double)
string
Three compound types:
array
object
callable
And finally two special types:
resource
NULL
false == "" == "0" == 0
От: | TimurSPB | ||
Дата: | 14.02.17 15:02 | ||
Оценка: |
HH>false == "" == "0" == 0
HH>
<?php
// your code goes here
var_dump(false === "");
var_dump(false == "")
?>
<?php
var_dump(false == "");
var_dump(false == "0");
var_dump(false == 0);
var_dump("" == 0);
var_dump("" == "0");
?>