<? $titles = ['заявка', 'заявки', 'заявок'];
$num = 34;
$word = $titles[ 1 === $num % 10 && 11 !== $num % 100 ? 0 : 2 <= $num % 10 && 4 >= $num % 10 && ( 10 > $num % 10 || 20 <= $num % 100 ) ? 1 : 2 ];
echo $num. ' ' .$word;
<? $num = 1;
$titles = ['заявка', 'заявки', 'заявок'];
$cases = [2, 0, 1, 1, 1, 2];
$word = $titles[($num % 100 > 4 && $num % 100 < 20) ? 2 : $cases[min($num % 10, 5)]];
echo $num. ' ' .$word;