-----BEGIN PGP SIGNED MESSAGE-----
If the target is in well-formed XML (XHTML is an example), you could use XSLT
to say 'i want the third column of a particular row - in this instance,
Melbourne'. However, since few people actually adhere to standards, you're
probably going to need a regex... if you're not comfortable with them,
explode() could be useful (although it is slower)
Somebody posted an extremely helpfull little quick reference at php.net/ereg,
i think... that might help you.
On Friday 22 November 2002 01:40 pm, Adam wrote:
> I have the following website that i want to grab info from:
> Say I wanted the current temperature for Melbourne from this table, what
> line of code would I need to tell it to get that info - ie, an ereg()
> i'm wondering whether there are ways of saying "i want the third column of
> a particular row - in this instance, Melbourne"?
> Thanks for any help.
I pledge allegiance to the flag, of the United States of America, and to the
republic for which it stands, one nation indivisible, with liberty, and
justice for all.
- -Pledge of Allegiance
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
-----END PGP SIGNATURE-----
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php