samedi 7 mai 2016

Set checked checkbox from array

I have 2 set of array which represent all data and selected data

$all_data = ["admin","member","editor"];
$selected = ["admin","member"];

I want to make all list of data that have checked if $all_data value = $selected value What the best method to make it possible?




Aucun commentaire:

Enregistrer un commentaire