I\'m using PHP\'s preg_match_all() to search a string imported using file_get_contents(). The regex returns matches but I would like to know at which line number those matches a
i think first of all, you need to read the $String into an array, each element stand for each line, and do look like this :
$List=file($String); for($i=0;$i