* @returns false|STRING|constant
*/
- function look_nws($num, $stop= '')
+ function look_nws($num)
{
$dir = $num > 0 ? 1 : -1;
if (!$num) {
$p += $dir;
continue;
}
- if ($stop != '' && $t == $stop) {
+ if (is_string($t)) { // stop on puncutation...
return false;
}
$c++;