pedroz
01-15-2007, 11:37 AM
It used to work on php 4 but not on php 5.2
$forums = ($action == 'forums' && $batch == 'index');
if (!$forums){
echo "yes;"
}else{
echo "no";
}
Any idea to adapt it to php 5.2?
I know I can use the code below but I have several code and I do not want to change it...
if (!($action == 'forums' && $batch == 'index')){
echo "yes;"
}else{
echo "no";
}
Thanks
$forums = ($action == 'forums' && $batch == 'index');
if (!$forums){
echo "yes;"
}else{
echo "no";
}
Any idea to adapt it to php 5.2?
I know I can use the code below but I have several code and I do not want to change it...
if (!($action == 'forums' && $batch == 'index')){
echo "yes;"
}else{
echo "no";
}
Thanks