if(preg_match('/[[[]/',$line)):
$line=preg_replace('/[[[]/','A',$line);
elseif(preg_match('/][]]/',$line)):
$line=preg_replace('/][]]/','B',$line);
endif;
I want to replace "[[" and "]]" to some words,but only "[[" can be replaced by A.
"]]" can't.
Can anyone help me?