Is it possible to use logical operators in the "then" part of the if/then statement in PHP?
This is my code:
if ($TMPL['duration'] == NULL) {
$TMPL['duration'] = ('120' or '124' or '114' or '138'); }
else {
$TMPL['duration'] = ''.$TMPL['duration']; }
then
statement ? I don't understand what you are trying to achieve ... – Xaltar May 1 '13 at 21:03|
– arminb May 1 '13 at 21:04elseif
? – Pankrates May 1 '13 at 21:04||
)? – Brock Hensley - FKA dirt May 1 '13 at 21:04