Answers for "get only the first two word from a string php"

PHP
0

get only the first two word from a string php

$message = preg_split('/[\s,]+/', $message, 3)
Posted by: Guest on August-06-2020

Code answers related to "get only the first two word from a string php"

Browse Popular Code Answers by Language