public function getFirstNoneTabField($fields)
    {
        if (count($fields)) {
            $potentialFirst = $fields[0];
            if (strpos($potentialFirst, "--div--") !== false) {
                unset($fields[0]);
                return $this->getFirstNoneTabField($fields);
            } else {
                return $potentialFirst;
            }
        } else {
            return "";
        }
    }
public function getFirstNoneTabField($fields)
    {
        if (count($fields)) {
            $potentialFirst = $fields[0];
            if (strpos($potentialFirst, "--div--") !== false) {
                unset($fields[0]);
                return $this->getFirstNoneTabField($fields);
            } else {
                return $potentialFirst;
            }
        } else {
            return "";
        }
    }
public function getFirstNoneTabField ( $ fields ) { if ( count ( $ fields ) ) { $ potentialFirst = $ fields [ 0 ] ; if ( strpos ( $ potentialFirst , "--div--" ) !== false ) { unset ( $ fields [ 0 ] ) ; return $ this -> getFirstNoneTabField ( $ fields ) ; } else { return $ potentialFirst ; } } else { return "" ; } }
Searches an array of strings and returns the first string, that is not a tab
@param array $fields
@return $string
Searches an array of strings and returns the first string that is not a tab