On Fri, April 1, 2005 1:53 pm, Brian Dunning said:
> I've been looking at the XML commands and am feeling a bit overwhelmed.
> My needs are simple and I'm hoping there's an easy solution that I'm
> just missing. I have a hunk of well-formed XML in a variable, $xml, and
> it contains only one instan
Brian Dunning wrote:
I've been looking at the XML commands and am feeling a bit overwhelmed.
My needs are simple and I'm hoping there's an easy solution that I'm
just missing. I have a hunk of well-formed XML in a variable, $xml, and
it contains only one instance of x.xx. I just want to get
the
]); $i++) {
echo ' + '.$matches[0][$i];
}
?>
but you'd better learn to handle xml files via xml parsers.
- Original Message - From: "Brian Dunning" <[EMAIL PROTECTED]>
To:
Sent: Friday, April 01, 2005 11:53 PM
Subject: [PHP] Easy way to grab a value
hes[0]);
for ($i=0; $i< count($matches[0]); $i++) {
echo ' + '.$matches[0][$i];
}
?>
but you'd better learn to handle xml files via xml parsers.
- Original Message -
From: "Brian Dunning" <[EMAIL PROTECTED]>
To:
Sent: Friday, April 01, 2005 11:53
If you are using PHP5 check out SimpleXML (http://php.net/simplexml)
On Apr 1, 2005 10:53 PM, Brian Dunning <[EMAIL PROTECTED]> wrote:
> I've been looking at the XML commands and am feeling a bit overwhelmed.
> My needs are simple and I'm hoping there's an easy solution that I'm
> just missing.
I've been looking at the XML commands and am feeling a bit overwhelmed.
My needs are simple and I'm hoping there's an easy solution that I'm
just missing. I have a hunk of well-formed XML in a variable, $xml, and
it contains only one instance of x.xx. I just want to
get the $price out of $xml.
6 matches
Mail list logo