Captainhams Posted April 27, 2007 Share Posted April 27, 2007 Hey all I am making a user login system, on the main login page it first gets the contents of a "logged-in" session cookie then sets it to a variable. How can i make something that will check if the variable is empty or not? :-\ Thanks! Link to comment https://forums.phpfreaks.com/topic/48926-check-if-a-variable-has-contents-in-it/ Share on other sites More sharing options...
taith Posted April 27, 2007 Share Posted April 27, 2007 if(!empty($var)){} Link to comment https://forums.phpfreaks.com/topic/48926-check-if-a-variable-has-contents-in-it/#findComment-239737 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.