2017
02.09

$a = 1

$a == 1 ? 'T' : 'F'
$a == "1" ? 'T' : 'F'
$a == '1' ? 'T' : 'F'

Result: TTT

$a === 1 ? 'T' : 'F'
$a === "1" ? 'T' : 'F'
$a === '1' ? 'T' : 'F'

Result: TFF

$b = '1'

$b == 1 ? 'T' : 'F'
$b == "1" ? 'T' : 'F'
$b == '1' ? 'T' : 'F'

Result: TTT

$b === 1 ? 'T' : 'F'
$b === "1" ? 'T' : 'F'
$b === '1' ? 'T' : 'F'

Result: FTT

$c = 'a' || $c = ''

$c == 0 ? 'T' : 'F'
$c == 1 ? 'T' : 'F'
$c === 0 ? 'T' : 'F'
$c === 1 ? 'T' : 'F'
$c !== 0 ? 'T' : 'F'
$c !== 1 ? 'T' : 'F'

Result: TFFFTT

Comments are closed.

ENVATO FLASH STOCK ENVATO THEME FOREST

CBDB.cz - moje knihy