Hi,
Is there a way to write this without writing $key every time??? I tried $key == 'description' || 'includes'.... etc... but it dosen't work.
- Code: Select all
} elseif (empty($value) && $key == 'description' || $key == 'includes' || $key == 'frameSize' || $key =='jumpWeight' || $key =='packedCarton' || $key == 'weight' || $key =='description2' || $key == 'thumb' || $key == 'large') {
It's being used in a class, so everything after $key == will be a variable passed from another script.
Thanks for your help!
Jim.
