Name: Anonymous 2011-08-29 0:48
Ok /prog/ im lost. Why does this script do not work? what im doing wrong!?
$a = array(
"/^\>(.*?)\n/im"
);
$b = array(
"<b>$1</b>"
);
$text = preg_replace($a, $b, $text);
It should grab any line starting with ">" and bold them out. Funny thing is that it works if i change ">" with "\*"
$a = array(
"/^\>(.*?)\n/im"
);
$b = array(
"<b>$1</b>"
);
$text = preg_replace($a, $b, $text);
It should grab any line starting with ">" and bold them out. Funny thing is that it works if i change ">" with "\*"