vendredi 2 septembre 2016

php code to push conditional values in to array

I have variables with values:

$abc = 'Y';

$xyz = 'N';

$pqr = 'Y';

$lmn = 'Y';

I want to create all the variables with value 'Y' in to an array, similar to as below:

$result = ( abc, pqr, lmn)

Aucun commentaire:

Enregistrer un commentaire