php array empty - how to get NOT -


if($_post['cropprofiledata'] == undefined || $_post['cropprofiledata'] == null || $_post['cropprofiledata'] == 0) {     echo "no process profile photo...."; }else{     echo "yes process profile photo...."; } 

this works fine - shows me if array empty.

the catch need 'echo "yes process profile photo...".

how can not of above if statement? i've tried added '!' after if - eg: if!( , i've tried added '!' after each of 3 statements.

is there way not of statement - save me having include else pointless code.

thx

ps: reason see if array empty.

just !empty( $_post[ 'cropprofiledata' ] ) cover cases (although undefined not used in php unless it's constant).

if( !empty( $_post[ 'cropprofiledata' ] ) ) {     echo "yes process profile photo...."; } 

Comments