Re: Hello from NZ
| From: | Chris Wright | Date: | Fri, 08 Aug 2014 00:50:44 +0000 |
| Subject: | Re: Hello from NZ | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969385098@lists.php.net to get a copy of this message | ||
On 8 August 2014 01:49, Chris Wright <daverandom@php.net> wrote:
> On 7 August 2014 23:12, Gold <gold@evolved.net.nz> wrote:
>> Hey all,
>
> Hi!
>
>> Was just working on some code that required me to refresh on the Basic
>> SimpleXML usage page for the first time in forever.
>>
>> http://php.net/manual/en/simplexml.examples-basic.php
>>
>> I was about to leave a comment about the documentation and spotted the
>> edit link so checked that instead which lead me here to establish that I
>> am a human and I am interested in contributing to the docs. :)
>>
>> So Hi. I'm a Drupal developer from Wellington, New Zealand and have been
>> working with PHP since 2000. I'm primarily working in Drupal these days
>> but am expecting that to change to Symphony as Drupal 8 moved to that
>> framework as it's underlying infrastructure. Quite looking forward to
>> that actually.
>>
>> Anyway, the doc edit. On that page in Example 6 it is makes the point
>> that in order to access the value of an attribute of an element you need
>> to cast it as a (string). The first mention of attributes in elements
>> is in Example 5 and I (for one) totally missed the casting to a string
>> and was stumped for a bit looking at the object being returned instead
>> of the string.
>
> If you would like to contribute to the docs, generally the quickest
> way is to make the edits yourself. If you open the editor (the edit
> link should take to to the login screen, you can log in anonymously or
> with a Google or Facebook account afair) you can edit the XML sources
> directly, save your edits and then create a patch from the WIP section
> on the right.
I meant on the left :-P