Hi,
I am having a few problems with a Preg_replace expression to replace a Ul tag with one that contains a class.
<?php
$ul = "<ul>";
$ulrep = "<ul class=\"verdana12_black\" >";
$str = preg_replace($ul,$ulrep,$str);
?>
It prints out the following
<
>
Test Ul>
on my Html page.
Can anyone help?
I am having a few problems with a Preg_replace expression to replace a Ul tag with one that contains a class.
<?php
$ul = "<ul>";
$ulrep = "<ul class=\"verdana12_black\" >";
$str = preg_replace($ul,$ulrep,$str);
?>
It prints out the following
<
>
Test Ul>
on my Html page.
Can anyone help?