RE: [PHP] Array questions...
| From: | Ford, Mike | Date: | Wed, 05 Mar 2008 15:41:53 +0000 |
| Subject: | RE: [PHP] Array questions... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-271022@lists.php.net to get a copy of this message | ||
On 05 March 2008 15:34, Jason Pruim advised:
> Okay so I'm replying to my own post... And top posting to boot! :P
>
> Amazing what happens when you pull a few [] off.... for completness:
>
> $NumArray = Array($_POST['txtNumArray']);
>
> works as I wanted :)
Are you sure?? Looks a bit suspect to me, since $_POST['txtNumArray']
will already be an array, and what you've got there turns it into an
Array of Array.
From your original message, I was about to suggest you wanted simply
$NumArray = $_POST['txtNumArray'];
and I still suspect that might be more the mark.
(I was also wondering to myself whether you actually really, really
wanted $txtNumArray = $_POST['txtNumArray'], but perhaps you can easily
explain why not...?)
--
Mike Ford, Electronic Information Services Adviser,
JG125, The Headingley Library,
James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 812 4730 Fax: +44 113 812 3211
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm