0
0

【PHP】任意の順番で配列を並び替え

Posted at

コード

usort($query_data, function($v1, $v2) use ($id_list){
    return array_search($v1["id"], $any_sort) > array_search($v2["id"], $any_sort);
});
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0