Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php remove parentheses and contents from string

$string = "ABC (Test1)";
echo preg_replace("/([^)]+)/","",$string); // 'ABC '
Comment

PREVIOUS NEXT
Code Example
Php :: year shortcode 
Php :: is number divisible by 3 php 
Php :: styling not working in laravel breeze 
Php :: laravel seed specific file 
Php :: display category name wordpress 
Php :: php get url path name 
Php :: order By Asc in laravbel 
Php :: php delete array item by value 
Php :: how to open server in php 
Php :: uuid package generator laravel 
Php :: php switch 
Php :: php append to array 
Php :: php open url 
Php :: how to use join query in codeigniter 
Php :: cast array to object php 
Php :: show php erros 
Php :: diffforhumans laravel 
Php :: php close window after script runs 
Php :: how to connect to a database in php 
Php :: wordpress custom loop latest first 
Php :: how to create controller in specific folder laravel 
Php :: put img in timestamp using php 
Php :: php create temporary file 
Php :: cakephp 404 exception 
Php :: reload page in php 
Php :: Date time format for laravel validation 
Php :: laravel eloquent merge request 
Php :: laravel sum group by 
Php :: nova resource title function 
Php :: laravel group by created_at date only 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =