lundi 5 septembre 2016

Between numbers in php

This is probably a stupid question. I want my code to make echo something when 'x' is in between 'y' and 'z'.

This is the original code:

< ?php echo ($articles[$art]['stock']>1 ? "x " : "z)"); ?>

I'm working on someone elses' code, but I'm not experienced.

Aucun commentaire:

Enregistrer un commentaire