Answers for "remove brackets in php"

PHP
1

php remove parentheses and contents from string

$string = "ABC (Test1)";
echo preg_replace("/\([^)]+\)/","",$string); // 'ABC '
Posted by: Guest on June-24-2021
1

remove square brackets from string php

$repl = str_replace(array('[[', ']]'), '', '[[link_to_page]]');// "link_to_page"
Posted by: Guest on June-06-2021

Code answers related to "remove brackets in php"

Browse Popular Code Answers by Language