Re: Script help about array dimension
| From: | Robert Cummings | Date: | Mon, 01 Dec 2003 06:16:31 +0000 |
| Subject: | Re: Script help about array dimension | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171434@lists.php.net to get a copy of this message | ||
On Mon, 2003-12-01 at 00:33, Curt Zirzow wrote:
> * Thus wrote orlandopozo@icnet.com.ve (orlandopozo@icnet.com.ve):
> > $array['ojpp'][1][][] = 'ferrer';
> > $array['test'][0] = 'ojpp';
> > $array['test'][1] = 'ferrer';
> >
> > How could I do a script that give me this output:
> >
> > Array
> > (
> > [0] => Array
> > (
> > [0] => ojpp
> > [1] => 1
> > [2] => 0
> > [3] => 0
> > )
If I understand correctly you want:
print_r( $array );
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'