Posted by Toby A Inkster on 08/15/07 08:08
ben@spam.com wrote:
> I want to create an array that contains a tuple, i.e. a pair of
> values.
PHP doesn't have a tuple data type: arrays are typically used instead. So
an array of tuples would be represented as an array or arrays.
I get the impression that you're trying to avoid an array of arrays. Why
is that?
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 55 days, 11:47.]
Fake Steve is Dead; Long Live Fake Bob!
http://tobyinkster.co.uk/blog/2007/08/13/fake-bob/
[Back to original message]
|