Hi,
Does empty() function validate all of this cases:
1.var=null
2.var=empty string ""/" "
3.var=not set
Example for validate use (Should I add some more code for validation or empty() enough?):
if(!empty($userName)){
//some code
}
else{
echo "not valid user name"
}
Edit: should isset() used before empty() or empty() include isset() case?
Thanks