For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > August 2004 > Re: [PHP-DB] Array









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Array
Justin Patrin

2004-08-26, 8:56 pm

$arr = array('key' => array('key2' => 'value', 'key3' => 'value', ...),
....);

$arr['key2'] = array('key2' => 'value', ...);

$arr['key3]['key2'] = 'value';

On Thu, 26 Aug 2004 16:11:27 -0500, Miguel Guirao <mguirao@acrosoft.net> wrote:
> Hi!!
>
> I have a table with many options from when the user can select them,
> after that, his/her selections will be stored in a database.
>
> In the mean time, I want to store his/her selections in an array like
> this one:
>
> PN Desc Qty
> |-----------------------|----------------------|-----------------------|
> |-----------------------|----------------------|-----------------------|
> |-----------------------|----------------------|-----------------------|
>
> How do I declare Duch an array like this??, let's call it Parts.
>
> Miguel Guirao
> Servicios Datacard
> www.SIASA.com.mx
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> !DSPAM:412dfd2d29942082615647!
>
>



--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com