jeudi 17 août 2017

PHP: Comparing to strings in percent: if $a % of $b

i need a short if/else in php to compare to strings in percent:

 if ($sum['cur'] 70% of $sum['max']) {
                print ("Attention");
              } else {
                print ("OK");
};

Aucun commentaire:

Enregistrer un commentaire