- strpos: documentation ( source)
- print_r: documentation ( source)
- array_filter: documentation ( source)
- range: documentation ( source)
<?php
$a = range(4,17);
print_r( array_filter($a, function($x){ return strpos( (string)$x, '5' ) === false; }) );
// $x = 5;
// echo strpos((string)$x, '5') !== false;