Jump to content

[SOLVED] Var Type Question


shane18

Recommended Posts

I always wondered why

 

//CODE START

$user_id = $account_lookup[0]; //Value is 1

$BLAH2  = 1;

if($BLAH2 == 1){

//CODE END

 

comes out to be false

.....

 

then i figured out $USER_ID is a string... and $BLAH2 is a int.....

 

 

so my question is...

 

1. Do VAR TYPES matter in if statements all the time...

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/174862-solved-var-type-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.