I am outputting two fields from my database... Brand & Title. I am outputting them as below...
<?php echo $row_rs_media_new['brand'] . " " . $row_rs_media_new['title']; ?>
My problem is on occasions in my data the title also shows the brand name so the brand name shows twice. The brand name is at the start of the title. How can I check if the start of the title has the brand name and if it does remove it along with the space after it?