Advertisement
bpoole

Calculate time to read based on words

Feb 20th, 2014
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.12 KB | None | 0 0
  1. //Roughly calculate the time it takes to read $something. (in minutes)
  2. $time_to_read = ceil(str_word_count($article) / 250);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement