Answers for "how to cut number string php"

PHP
10

get last character of string php

substr("testers", -1); // returns "s"
Posted by: Guest on March-05-2020
0

get only the first two word from a string php

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

Browse Popular Code Answers by Language