<?php
$ids=array("a","s"),array("b","s"), array("c","s"), array("e","s");
$groups=array(array("b","s"),array("c","s"));
array_walk($groups,function($v,$i)use(&$ids){
$ids=array_intersect ($ids,$v);
});
print_r($ids);
- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.22
- Parse error: syntax error, unexpected ',' in /in/SsgkP on line 2
Process exited with code 255.
preferences:
193.51 ms | 1395 KiB | 58 Q