mercredi 13 décembre 2017

php if else condition based on || && how to display message based on given value

The $status variable can be “pending” or “approved” How can I apply standard php if else condition with OR ( || ) AND ( && ) to display as the following

If the $status are **both** pending and approved:  display **pending** message
If all $status are pending: display **pending** message 
If all $status are approved: display **approved** message

how to display message based on given parameter using php

Aucun commentaire:

Enregistrer un commentaire