- var_dump: documentation ( source)
- 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 $parts['path'];
$array = explode('/',$parts['path']);
var_dump($array);
?>