This is the code in the first page that I visit.
? session_start();
$check0 = session_is_registered(fb);
$check1 = session_register(fa);
$check2 = session_is_registered(fa);
$check3 = isset($HTTP_SESSION_VARS[fa]);
$HTTP_SESSION_VARS[fa] = avalue;
$check4 = isset($HTTP_SESSION_VARS[fa]);
echo
apparently, session_is_registered and isset return null if
they evaluate to
false. I was expecting boolean true and false return values,
What you were expecting is correct, boolean true/false. However, it appears
that PHP converts these values to strings during the echo. true converts to
So sprach »Johnny Nguyen« am 2001-08-21 um 12:29:53 -0700 :
false. I was expecting boolean true and false return values, but no matter
i can work with it this way, just wondering if this is by design.?
There isn't such a thing as boolean true or false in PHP. In PHP,
everything other than
3 matches
Mail list logo