<?php $lines = array( 'keud orfd', 'signs %26 loves', 'love\'s and film', 'prosdfsd sdf', 'test', ); $callback = function($line){ return !preg_match('/[%$@]+/', $line); }; for ($i = 1; $i <= 50000; $i++) { $result = array_filter($lines, $callback); }
You have javascript disabled. You will not be able to edit any code.