- print_r: documentation ( source)
<?php
$map = [
'center' => 1,
'left' => 2,
'right' => 3
];
$param = @$map[$align];
if (isset($param)) {
print_r("true");
} else {
print_r("false");
}