Answers for "remove brackets from string php"

PHP
0

remove square brackets from string php

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

remove square brackets from string php

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

remove square brackets from string php

$output = preg_replace( '/[[(w+)[]/' , '$1' , $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
1

remove square brackets from string php

$repl = preg_replace('/([|]){2}/', '', '[[link_to_page]]');// "link_to_page"
Posted by: Guest on June-06-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 from string php"

Browse Popular Code Answers by Language