Answers for "php extract first 2 words from string"

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 "php extract first 2 words from string"

Browse Popular Code Answers by Language