PHP What is the best way to get the first 5 words of a string?

Posted by Mithun on Stack Overflow See other posts from Stack Overflow or by Mithun
Published on 2010-05-26T18:24:10Z Indexed on 2010/05/26 18:31 UTC
Read the original article Hit count: 157

Filed under:
|

What is the best way to get the first 5 words of a string? How can I split the string into two in such a way that first substring has the first 5 words of the original string and the second substring constitutes the rest of the original string

© Stack Overflow or respective owner

Related posts about php

Related posts about string