<?php $array = Array('one.php2000565','two.php','three.php','one.php999.php','four.php'); $search_text = 'one.php'; $res = array_filter($array, function($a) use ($search_text) { return ( strpos($a, $search_text) !== false );}); print_r($res);
You have javascript disabled. You will not be able to edit any code.