vendredi 27 juillet 2018

check If one variable only out of many is greaten than another vairable in PHP

I have a scenero, i want a situation to check and return value FO 1. IF ONLY ONE VARIABLE OUT OF THREE IS GREATER THAN ANOTHER VARIABLE 2. IF TWO OR MORE VARIABLE OUT OF THREE IS GREATER THAN ANOTHER VARIABLE

my code below

if(   $date1 and $date and $LatestMaintenancePcd ) > $today){
                       $indicator = 'success'; 
                    }

this only works for if all ther variables greater than today, but i want if one variable only is greater than today, also if two variable or more is greater than today

Aucun commentaire:

Enregistrer un commentaire