Re: Call-time pass-by-reference deprecation errors
Brought to you by:
bs_php,
nigelswinson
From: Peter R. <php...@pe...> - 2001-12-07 17:05:36
|
On Friday 07 Dec 2001 4:22 pm, you wrote: > > also, a short example php file showing basic php.xpath usage would be > extremely helpful. the class documentation is nice, but not so helpful > to a beginning user who doesn't necessarily know in advance what > methods might be useful. i downloaded the pxpxmldb source to have > something else to look at, but just a simple "here's a new xpath > object, here's how we select a node and print it out, done." would go a > long way. i'll try and write one and post it, maybe that could also be > bundled with the download as a resource for new users. I had much the same thoughts myself. Here's a simple sample I wrote, first evaluating the first occurrence, then doing the same thing using a specific attribute. You can remove the comment on the print_r to see what evaluate/match creates (easier to read as plain text rather than html). |