foreach ($jsonObj->d->results as $value) {
// Leave only host + path
$url = strip_tags($value->Url);
$url = $url['host'] . $url['path'];
$resultsB[] = array(
'url' => $url,
'title' => $value->Title,
'rank' => $i--,
'desc' => $value->Description,
$b++,
);
}
Something like this?