DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
last item coma replace and php
$likes = 'Apple, Samsung, Microsoft'; $likes = preg_replace("/,([^,]+)$/", " and $1", $likes)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#item
#coma
#replace
#php
ADD COMMENT
Topic
COMMENT
Name
6+3 =
Submit