Jump to content
php.lv forumi

Gļuks ar kūkiju


briedis

Recommended Posts

Kā varētu būt izskaidrojams tas, ka pirmais vardump izmet NULL, otrais BOOL(true) ???

 

	
$fuck_it = 0;
if($_COOKIE['logged'] == "mhm"){
	$logged_in == true;
	var_dump($logged_in); // izmet NULL
	$fuck_it = 1;
	}
if($fuck_it == 1) $logged_in = true;
var_dump($logged_in); //izmet bool(true)

Edited by briedis
Link to comment
Share on other sites

×
×
  • Create New...