function search_noise($text) { global $debugObject; if (is_object($debugObject)) { $debugObject->debugLogEntry(1); } foreach ($this->noise as $noiseElement) { if (strpos($noiseElement, $text) !== false) { return $noiseElement; } } }