Answers for "php add to string after certain character"

PHP
2

get the string after a character in php

$data = "123_String";    
$whatIWant = substr($data, strpos($data, "_") + 1);    
echo $whatIWant;
Posted by: Guest on April-27-2020
2

php insert character into string

$newstr = substr_replace($oldstr, $str_to_insert, $pos, 0);
Posted by: Guest on June-04-2020

Code answers related to "php add to string after certain character"

Browse Popular Code Answers by Language