I want to sort values first depending on the order based on another array.
$countries = explode(',', 'AF,AL,DZ,AS,AD,FR,AO,AI,AQ,GB');
$popular = explode(',', 'FR,GB');
I from $countries I want the values defined in $popular to form an array like this:
$ordered = ['GB,FR,AF,AL,DZ,AS,AD,AO,AI,AQ']
Thanks
