DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
remove string after comma in php
preg_replace('/^([^,]*).*$/', '$1', $print); substr($string, 0, strrpos($string.",", ","));
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#remove
#string
#comma
#php
ADD COMMENT
Topic
COMMENT
Name
6+2 =
Submit