Function to Limit Words, then show left over text
问题 I have a div that has a read more button. The read more button expands text, the expanded text is in a second div below it. Complete stuck. Please help. Code below: <?PHP function limit_words($string, $word_limit){ $words = explode(" ",$string); return implode(" ",array_splice($words,0,$word_limit)); } $text = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur