SimpleXMLElement Object into array



How do I put the value of an SimpleXMLElement Object into any array

If $title is SimpleXMLElement Object ( [0] => Mother )

how do I get "Mother" and put it in an array ? ;

if I echo $title, it says "Mother" but if I put it in an array
$myarray=array($title);
the array is Array ( [0] => SimpleXMLElement Object ( [0] =>
Mother ) )
I don't want that I want
Array ( [0] =>Mother) )
.



Relevant Pages

  • oo code
    ... I've got a prototype-defined method: ... lookup function for Arrays. ... The next iteration of my code will probably have a sort of 'mother' ... object that has an Array of objects as a member and then have the ...
    (comp.lang.javascript)
  • Re: SimpleXMLElement Object into array
    ... how do I get "Mother" and put it in an array? ... if I echo $title, it says "Mother" but if I put it in an array ... To access a SimpleXMLElement's content you have to cast it to a string. ...
    (comp.lang.php)
  • arrays in arrays
    ... Have a 2D array where each element contain a new 2D ... Is it possible to perform a 'Redim Preserve' on an ... array contained in the "mother" array? ...
    (microsoft.public.excel.programming)
  • Re: [PHP] Array and Object
    ... Well anyways please let me handle the problems with decoding. ... => SimpleXMLElement Object ... back the same array structure. ... decoding UTF-8 to Latin1 ...
    (php.general)