public function readtime($text)
    {
        $words = str_word_count(strip_tags($text));
        $min = floor($words / 200);
        if ($min === 0) {
            return '1';
        }

        return $min;
    }
public function readtime($text)
    {
        $words = str_word_count(strip_tags($text));
        $min = floor($words / 200);
        if ($min === 0) {
            return '1';
        }

        return $min;
    }
public function readtime ( $ text ) { $ words = str_word_count ( strip_tags ( $ text ) ) ; $ min = floor ( $ words / 200 ) ; if ( $ min === 0 ) { return '1' ; } return $ min ; }
Calculate estimated time to read a text.

@param $text

@return float|string
Calculate estimated time to read a text .