Answers for "php remove a name seperated by coma from string"

PHP
0

remove string after comma in php

preg_replace('/^([^,]*).*$/', '$1', $print);
substr($string, 0, strrpos($string.",", ","));
Posted by: Guest on March-18-2021

Code answers related to "php remove a name seperated by coma from string"

Browse Popular Code Answers by Language