Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 276 Bytes

reading_time.md

File metadata and controls

12 lines (8 loc) · 276 Bytes

reading_time

Gets the estimated time to read the specified content.

reading_time($content, $wpm = 200):int

  • (string) $content - Content to count.
  • (int) $wpm - Words per minute. By default, 200.
$time = reading_time($modx->resource->getContent());