FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP5 DOM extension - using firstChild
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP5 DOM extension - using firstChild [message #177542 is a reply to message #177541] Sun, 08 April 2012 21:31 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On Sun, 08 Apr 2012 14:17:00 -0700, Denis wrote:

print $hndChild->firstChild->nodeValue;

accesses the firstChild *property* of $hndChild

$toGo = $hndChild->firstChild(); <-- failing statement

accesses the firstChild() *method* of $hndChild

if firstChild a property or a method?

in other words, is it a member variable or a member function?

Maybe:

$toGo = $hndChild->firstChild;

would work? I'm just speculating, based on the slight difference in the
two lines you indicate, "firstChild" vs "firstChild()".

Rgds

Denis McMahon
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: variable path lose slashs when used in an alert
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 15:55:07 GMT 2024

Total time taken to generate the page: 0.04031 seconds