<?php $searchQuery = "hello"; $dir = "/home/mosh/"; $files = scandir($dir); foreach($files as $file) { if (($file !== ".") && ($file !== "..")) { $s = file_get_contents($file); preg_match("/{$searchQuery}/",$s,$match); if ($match) { $matchedFiles[] = $file; } } } print_r($matchedFiles);
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`