Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.14 KB | None | 0 0
  1. $ids = [127755, 127755, 127753, 127753];
  2.  
  3. $test = [127753 => [],
  4.     127755 => []];
  5.  
  6. var_dump(array_replace(array_flip($ids), $test));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement