- array_intersect: documentation ( source)
- print_r: documentation ( source)
<?php
$test = array( 'permissions', 'this');
$toost = array('this2', 'permissions2');
$yo = array_intersect($test, $toost);
if ($yo)
print_r($yo);
else
print('it is boolean false');