Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Este es el objeto devuelto que quiero parsear:
- Array
- (
- [0] => SimpleXMLElement Object
- (
- [Datos] => SimpleXMLElement Object
- (
- [@attributes] => Array
- (
- [Idioma] => 1
- [Codigo] => PQ26CK0700035770129009Y
- [Evento] => 1
- [web_id] => Sin web_id
- )
- [Estado] => En tránsito.
- [Fecha] => 23/07/2014
- )
- )
- )
- // Lo parseo así:
- $ret['localizador'] = $localizador;
- $ret['estado'] = $res[0]->Datos->attributes();
- $ret['fecha'] = $res[0]->Datos->Fecha;
- // Pero el array resultanto tiene la siguiente estructura:
- Array
- (
- [localizador] => PQ26CK0700035770129009Y
- [estado] => SimpleXMLElement Object
- (
- [0] => En tránsito.
- )
- [fecha] => SimpleXMLElement Object
- (
- [0] => 23/07/2014
- )
- )
- // Como cojones me quito el SimpleXMLElement Object ( [0] => .... ) y saco solo el string de la fecha?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement