I need to extract the first 5 words, allowing points, numbers and parenthesis from this string using PHP:
Below your Eyes 3.2 (2013) Unrated From database
I want Output Like this...
Below your Eyes 3.2 (2013)
How can I do this?
I need to extract the first 5 words, allowing points, numbers and parenthesis from this string using PHP:
Below your Eyes 3.2 (2013) Unrated From database
I want Output Like this...
Below your Eyes 3.2 (2013)
How can I do this?
$string = "Below your Eyes 3.2 (2013) Unrated From database";
echo implode(' ', array_slice(explode(' ', $string), 0, 5));
Output
Below your Eyes 3.2 (2013)