Return to Snippet

Revision: 65780
at January 19, 2014 23:25 by Balamir


Initial Code
function read_time($text){
    $words = str_word_count(strip_tags($text));
    $min = ceil($words / 200);
    return $min . ' min read';
}

Initial URL
http://provode.com/2013/11/copying-mediums-estimated-reading-time/

Initial Description
used ceil instead floor

Initial Title
estimated reading time function (modified)

Initial Tags
php, function

Initial Language
PHP