mercredi 15 mai 2019

Only return when a next day value false and if same day is false then nothing return

This is the JSON of stores open and close.


$stores_open_starts="{\"monday\":\"13:00\",\"tuesday\":false,\"wednesday\":\"15:00\",\"thursday\":false,\"friday\":false,\"saturday\":\"17:00\",\"sunday\":\"18:00\"}";
$stores_open_ends="{\"monday\":\"21:40\",\"tuesday\":false,\"wednesday\":\"15:00\",\"thursday\":false,\"friday\":false,\"saturday\":\"15:00\",\"sunday\":\"15:00\"}";

I can't make a proper condition for this. i am just echo the value if the next day is false and if not the today is not equal to the false date. if tow day are false then when it open with day.

My Work link https://3v4l.org/o6NeR

Aucun commentaire:

Enregistrer un commentaire