Ci sto provando...
con questa funzione:
Codice PHP:
function strip_only($str, $tags) { if(!is_array($tags)) { $tags = (strpos($str, '>') !== false ? explode('>', str_replace('<', '', $tags)) : array($tags)); if(end($tags) == '') array_pop($tags); } foreach($tags as $tag) $str = preg_replace('#</?'.$tag.'[^>]*>#is', ' ', $str); return $str; }
sono riuscito ad ottenere questo:
User rmf
Activity Other Tracking 1
Route Do\ko
Start time 18.11.09 06:24
Duration 43 min 30 s
Distance 79.25 km
Speed avg 109.28 km/h
Speed max 141.48 km/h
Pace avg 0:33 / km
Pace max 0:25 / km / km
come posso fare però fare una cosa tipo:
$User='rmf';
$Activity='Other tracking';
e così via?