- json_decode: documentation ( source)
- explode: documentation ( source)
- parse_url: documentation ( source)
<?php
$str = "{\"url\":\"http:\/\/treadmills.findthebest.com\/l\/230\/LifeSpan-TR5000i\"}";
$json = json_decode($str);
echo $json->url;
$parts=parse_url($json->url);
echo explode('/',$parts['path']);
?>