Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

remove string after comma in php

preg_replace('/^([^,]*).*$/', '$1', $print);
substr($string, 0, strrpos($string.",", ","));
 
PREVIOUS NEXT
Tagged: #remove #string #comma #php
ADD COMMENT
Topic
Name
3+4 =