I have been using php for webapp development and constantly i come across variable not defined or index not defined error/warning.
Usally we do check it by isset(variable) or empty() . But the problem I is that I have to write code for checking my entire variables(which can be empty) null or not by functions isset(variable) or empty() ,this makes code ugly.
Can anyone suggest any aother method rather than checking variables before using it??