[PHP] problem in 2 dimensional Array

2003-10-23 Thread khuram noman
Dear Members

i have 2 problems in 2 dimensional array

1. how to declare global 2 dimensional array in php
2. how to pass 2 dimensional array in function as an
arrgument

waiting for ur soon reply
Khuram Noman

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



RE: [PHP] problem in 2 dimensional Array

2003-10-23 Thread Martin Towell
 Dear Members
 
 i have 2 problems in 2 dimensional array
 
 1. how to declare global 2 dimensional array in php
 2. how to pass 2 dimensional array in function as an
 arrgument
 
 waiting for ur soon reply
 Khuram Noman

1. $myvar = array();
   $myvar[0] = array();
   $myvar[0][0] = myval;
   etc...

   or directly
   $myvar[0][0] = myval;   

2. The same way you pass any other variable to a function
   myfunc($myvar);

HTH
Martin

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



[PHP] Problem in 2 dimensional Array

2003-10-22 Thread khuram noman
Dear Members

i have 2 problems in 2 dimensional array .

1. how to declare global 2 dimensional array in php
2. how to pass 2 dimensional array in function

Waiting for ur soon reply

Khuram Noman

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: [PHP] Problem in 2 dimensional Array

2003-10-22 Thread Marek Kilimajer
khuram noman wrote:

Dear Members

i have 2 problems in 2 dimensional array .

1. how to declare global 2 dimensional array in php
$GLOBALS['array_name']=array(  );

2. how to pass 2 dimensional array in function
Like any other value.

Waiting for ur soon reply

Khuram Noman

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php