private function extract($segments, $number)
    {
        foreach ($segments as $part) {
            if (! is_null($line = $this->extractFromString($part, $number))) {
                return $line;
            }
        }
    }
private function extract($segments, $number)
    {
        foreach ($segments as $part) {
            if (! is_null($line = $this->extractFromString($part, $number))) {
                return $line;
            }
        }
    }
private function extract ( $ segments , $ number ) { foreach ( $ segments as $ part ) { if ( ! is_null ( $ line = $ this -> extractFromString ( $ part , $ number ) ) ) { return $ line ; } } }
Extract a translation string using inline conditions.

@param  array  $segments
@param  int  $number
@return mixed
Extract a translation string using inline conditions .