[PHP] Does Scope-Resolution Operator Always Follow 'parent'?

2013-03-10 Thread Eric James Michael Ritz
Hello everyone, I have a question about the `parent` keyword: is there any valid situation where it can appear without the `::` operator following? I am asking to fix a bug in php-mode[1] for GNU Emacs. Consider the following code: echo $parent; echo parent::$foo; echo $this->paren

Re: [PHP] Re: Ref: Embed a form within a form

2013-03-10 Thread Jim Giner
On 3/10/2013 5:12 PM, Ashley Sheridan wrote: http://csscreator.com/divitis Thanks, Ash http://www.ashleysheridan.co.uk Is it Friday again already? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML to Array

2013-03-10 Thread Karl DeSaulniers
On Mar 10, 2013, at 6:03 AM, richard gray wrote: On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this issue. I have been lost in the code for some time now. I am trying to get the attributes of an xml node. I have this code: [snip] this ma

[PHP] Re: XML to Array

2013-03-10 Thread Carlos Medina
Hi, use https://github.com/theseer/fDOMDocument. You can install it over PEAR. You can use it like $xml = ''; $dom = new fDOMDocument(); $dom->loadXML($xml); // get attribute $elementNode = $dom->queryOne('//test[@id="my_id"]'); echo $elementNode->nodeValue; Greetings Carlos Medina Am 10.03

Re: [PHP] XML to Array

2013-03-10 Thread richard gray
On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this issue. I have been lost in the code for some time now. I am trying to get the attributes of an xml node. I have this code: [snip] this may help -> http://stackoverflow.com/questions/1156957