Re: xpath and SimpleXML
| From: | Matthew Sims | Date: | Thu, 07 Oct 2004 21:42:53 +0000 |
| Subject: | Re: xpath and SimpleXML | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198899@lists.php.net to get a copy of this message | ||
> So, using xpath, I have constructed the following function. The problem is
> the quotes "" around the number. xpath is treating it as a string, I
> believe.
Would sprintf() work for this?
Something like:
$num = sprintf("%d", $xpathNum);
I haven't tested this.
--
--Matthew Sims
--<http://killermookie.org>