<?php
$permissoes = [
['A' => 'X', 'B' => 'Y', 'C' => 1],
['A' => 'X', 'B' => 'Y', 'C' => 2],
['A' => 'X', 'B' => 'W', 'C' => 1],
['A' => 'X', 'B' => 'W', 'C' => 3]
];
$A = 'X';
$B = 'Y';
$C = 2;
echo "Permissões encontradas no índice {$indice}";
} else {
echo "Permissões não encontradas";
}
PD9waHAKCiRwZXJtaXNzb2VzID0gWwogICAgWydBJyA9PiAnWCcsICdCJyA9PiAnWScsICdDJyA9PiAxXSwKICAgIFsnQScgPT4gJ1gnLCAnQicgPT4gJ1knLCAnQycgPT4gMl0sCiAgICBbJ0EnID0+ICdYJywgJ0InID0+ICdXJywgJ0MnID0+IDFdLAogICAgWydBJyA9PiAnWCcsICdCJyA9PiAnVycsICdDJyA9PiAzXQpdOwoKJEEgPSAnWCc7CiRCID0gJ1knOwokQyA9IDI7CgppZiAoJGluZGljZSA9IGFycmF5X3NlYXJjaChjb21wYWN0KCdBJywgJ0InLCAnQycpLCAkcGVybWlzc29lcykpIHsKICAgIGVjaG8gIlBlcm1pc3PDtWVzIGVuY29udHJhZGFzIG5vIMOtbmRpY2UgeyRpbmRpY2V9IjsKfSBlbHNlIHsKICAgIGVjaG8gIlBlcm1pc3PDtWVzIG7Do28gZW5jb250cmFkYXMiOwp9