Re: Multidimension Array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/9/06, weetat <weetat.yeo@xxxxxxxxx> wrote:
  How to get the array value in the [TBA04490054] and [JAE070406RT] ?
  For example , [0] = 'SAD04520AZD' ,[1]= 'SAL04430RE9' and so on.

  Anybody have any ideas or suggestions how to do it ?

Thanks

- weetat

Array
(
     [TBA04490054] => Array
         (
             [0] => SAD04520AZD
             [1] => SAL04430RE9
             [2] => SAL04430M00
         )

)

Array
(
     [JAE070406RT] => Array
         (
             [0] => JAE070406RT
             [1] => JAB023808EC
             [2] => JAB030704WM
         )

)

You can access the elments like:

echo $arr['TBA04490054'][0];

Create new sub elements like:

$arr['TBA04490054'][] = 'JAE...';

Manual: php.net/manual/en/language.types.array.php

Rabin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux