Answers for "php remove square brackets and content inside"

PHP
0

remove square brackets from string php

str_replace( array('[',']') , ''  , $string )
Posted by: Guest on June-06-2021
0

remove square brackets from string php

preg_match_all('/[[([^]]+)]]/', $yourText, $matches);
foreach($matches as $link) {
   echo $link[1];
}
Posted by: Guest on June-06-2021

Code answers related to "php remove square brackets and content inside"

Browse Popular Code Answers by Language