from localhost (localhost [127.0.0.1])
	by phobos.labs.netnoteinc.com (Postfix) with ESMTP id 8F8E943C43
	for <jm@localhost>; Wed, 14 Aug 2002 05:45:28 -0400 (EDT)
from phobos [127.0.0.1]
	by localhost with IMAP (fetchmail-5.9.0)
	for jm@localhost (single-drop); Wed, 14 Aug 2002 10:45:28 +0100 (IST)
from usw-sf-list2.sourceforge.net (usw-sf-fw2.sourceforge.net
    [216.136.171.252]) by dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id
    g7DICq412843 for <jm-razor@jmason.org>; Tue, 13 Aug 2002 19:12:52 +0100
from usw-sf-list1-b.sourceforge.net ([10.3.1.13]
    helo=usw-sf-list1.sourceforge.net) by usw-sf-list2.sourceforge.net with
    esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id 17eg4O-0002HZ-00; Tue,
    13 Aug 2002 11:07:04 -0700
from neo.pittstate.edu ([198.248.208.13]) by
    usw-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id
    17eg3k-00088u-00 for <razor-users@lists.sourceforge.net>; Tue,
    13 Aug 2002 11:06:24 -0700

from localhost (localhost [127.0.0.1])
	by phobos.labs.netnoteinc.com (Postfix) with ESMTP id 02CC943C34
	for <jm@localhost>; Tue, 20 Aug 2002 13:52:26 -0400 (EDT)
from phobos [127.0.0.1]
	by localhost with IMAP (fetchmail-5.9.0)
	for jm@localhost (single-drop); Tue, 20 Aug 2002 18:52:26 +0100 (IST)
from lugh.tuatha.org (root@lugh.tuatha.org [194.125.145.45]) by
    dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g7KHrrZ18007 for
    <jm-webdev@jmason.org>; Tue, 20 Aug 2002 18:53:53 +0100
from lugh (root@localhost [127.0.0.1]) by lugh.tuatha.org
    (8.9.3/8.9.3) with ESMTP id SAA16734; Tue, 20 Aug 2002 18:53:50 +0100
from k100-50.bas1.dbn.dublin.eircom.net
    (k100-50.bas1.dbn.dublin.eircom.net [159.134.100.50]) by mail.go2.ie
    (Postfix) with ESMTP id 973DA1105 for <webdev@linux.ie>; Tue,
    20 Aug 2002 18:53:12 +0100 (IST)
From webdev-admin@linux.ie  Tue Aug 20 18:52:26 2002

On Mon, 2002-08-19 at 18:28, Dave Wilson wrote:
> then PHP will create a variable called "varname" with result SECOND.
> then PHP will create an array with varname[1]==FIRST and varname[2]==SECOND
By far the coolest solution to this would be to "fix" php :)
Take a look at main/php_variables.c in the php source distribution.
You could mess around with the variable is_array in
php_register_variable_ex() and see if you can force all variables to be
arrays :) As far as I can tell the reason they do this is to save
time by not having to work out which variables have multiple values.