if($_POST['cropProfileData'] == undefined || $_POST['cropProfileData'] == null || $_POST['cropProfileData'] == 0) {
echo "NO process profile photo....";
}else{
echo "YES process profile photo....";
}
this works fine - it shows me if the array is empty.
The catch is I only need the 'echo "YES process profile photo...".
How can I get the NOT of the above IF statement? I've tried added '!' after the if - eg: if!( and I've tried added '!' after each of the 3 statements.
Is there a way to get the NOT of this statement - will save me a having to include the else which is pointless code.
thx
PS: the reason for this is to see if the array is empty.
undefinedWell, it's monday…$_POST['cropProfileData'] != undefined ||undefinedconstant?Undefinedmust have come from JavaScript