How can i test a var if its empty or not?
i have this array
array($myname,$myhouse,$mywife);
How can I check each of them if it empty or not without using a loop?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you’re asking for is either impossible or facetious. You either need to explicitly test each variable by name or use a loop to test a dynamic collection of variables.