Hi all I am sorry if this is a dumb question and I understand I might get banned for asking it but after a lot of work reading over PHP manual, reading the relevant chapters in PHP5.3 and scowering across Stackoverflow I am stuck in my tracks.
I have been universally format the url's taken in from a Search API I have tried to use parse_url(), trim and others unsuccessfully I decided upon str_replace
foreach ($jsonObj->RESULT as $value) {
$BLekko_results[] = array(
'url' => strip_tags($value->url),
'url' => str_replace("http://www.", "http://", $value->url),
'url' => str_replace("https://www.", "http://", $value->url),
'url' => str_replace( " http://", "http://", $value->url),
'url' => str_replace( " http://", "http://", $value->url),
title' => $value->url_title,); }
I plead humbly for you help ...