Sunday, 15 January 2012

php - if with mulitiple empty checks and OR -



php - if with mulitiple empty checks and OR -

i'm wondering why status dosn't work

if(!empty($b['boxtext1']) || !empty($b['boxtext2']) || !empty($b['boxtext3']))) { // }

i error:

parse error: syntax error, unexpected '!' in

am missing something?

best

try this..........you typed ')'.....

if(!empty($b['boxtext1']) || !empty($b['boxtext2']) || !empty($b['boxtext3'])) { // }

php

No comments:

Post a Comment