PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $a = ["group.phantom", "group.god", "group.imperator", "group.general", "group.hermit", "group.soldier"]; $b = [ [ "permission" => "group.default" ], [ "permission" => "group.phantom" ], [ "permission" => "group.general" ] ]; #$c = ; echo json_encode(array_values(array_intersect($a, array_column($b, 'permission')))[0] ?? null);
Show:  
Copy Clear