RE: [PHP] Passing a single array element to a function - IMPOSSIB LE?
| From: | Krznaric Michael | Date: | Wed, 02 Aug 2000 18:24:26 +0000 |
| Subject: | RE: [PHP] Passing a single array element to a function - IMPOSSIB LE? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-9777@lists.php.net to get a copy of this message | ||
Please excuse me,
All i have to say is DO NOT drink and PHP
-----Original Message-----
From: Krznaric Michael [mailto:mkrznaric@rand.com]
Sent: Wednesday, August 02, 2000 2:11 PM
To: 'php-general@lists.php.net'
Subject: [PHP] Passing a single array element to a function -
IMPOSSIBLE?
It seems that calling a function with an array element as an argument
results in the whole array being passed. Am I wrong? I don't see element
passing documented in the manual so I'm hopeing someone has some info.
<?
function PrintSomething ($Info){
print $Info;
}
$Array["SomeInfo"]="This is some info";
PrintSomething ($Array["SomeInfo"]);
?>
results in
Array
???
Anyone have any ideas
Michael Krznaric
RAND Worldwide
Webmaster
905-625-2000 x 2325
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net