i have a field 'home_features' im returning to my page which returns the following
Dishwasher||Microwave||Washer/Dryer||Carpeted Floors||Cable/Satellite TV||Fireplace||Hi Fi system||
using the following
<?php if ($listingID >0 ) {renderSingleListingItemRaw($listingID, "home_features") ;} else {echo "";} ?>
how do i remove the || seperator and replace it with a ,
so it looks like
Dishwasher,Microwave,Washer/Dryer,....etc
im trying to use this as a dynamic meta tag keyword generator for each page i have. each listing id has its own list. Ive tried
<?php $featuresfixed = str_replace('||', ',', renderSingleListingItemRaw($listingID, "home_features")) ?>
but i just get the same results, what am i doing wrong?