Im newbie, I have some ploblem with PHP str_replace and I need to advice
$a = '<a class="class1 clss2" href="http://www.somedomain.com/page1.php" target="_blank"><p class="myclass">';
I want to replace html tag like this
Before:
<a class="class1 clss2" href="http://www.somedomain.com/page1.php" target="_blank"><p class="myclass">
After:
<p class="myclass"><a class="class1 clss2" href="http://www.somedomain.com/page1.php" target="_blank">
I try to coding and I have problem with dynamic value in class="..." and href="..."
Please advice and thank :)