DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php remove parentheses and contents from string
$string = "ABC (Test1)"; echo preg_replace("/([^)]+)/","",$string); // 'ABC '
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#php
#remove
#parentheses
#contents
#string
ADD COMMENT
Topic
COMMENT
Name
9+6 =
Submit