Answers for "how to get all string without first character in php"

PHP
6

php pop off the first character of string

$str = substr($str, 1);
Posted by: Guest on September-10-2020
1

get first word from string php

function getFirstWord($string)
    {
        $arr = explode(' ', trim($string));
        return isset($arr[0]) ? $arr[0] : $string;
    }
Posted by: Guest on February-26-2021

Code answers related to "how to get all string without first character in php"

Browse Popular Code Answers by Language