- print_r: documentation ( source)
- in_array: documentation ( source)
- array_diff: documentation ( source)
<?php
$test = array( 'permissions2', 'this2', 'test');
$toost = array('this2', 'permissions2');
// $yo = array_diff($toost, $test);
if (in_array($toost, $test))
print_r(array_diff($test, $toost));
else
print('it is false');