Date: 12/16/00
- Next message: Mattias Johansson: "RE: [PHP-DB] Fetching (and displaying) the 3 newest items from MySQL"
- Previous message: John Starkey: "[PHP-DB] globals"
- In reply to: John Starkey: "[PHP-DB] globals"
- Next in thread: John Starkey: "RE: [PHP-DB] globals"
- Reply: John Starkey: "RE: [PHP-DB] globals"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
$myArray;
$myVariable;
doThis($myVariable);
function doThis($tempVariable) {
global $myArray;
# do whatever
}
Dave
-----Original Message-----
From: John Starkey [mailto:jstarkey <email protected>]
Sent: Saturday, December 16, 2000 3:19 AM
To: php-db <email protected>
Subject: [PHP-DB] globals
Hello all.
What are the rules for globals? I've seen them in tutorials but have had a
hard time implementing them. I need to create an array outside of a
function, pass a variable to that function, and then call the array for
comparison to that variable. I can't pass the array to the function.
Thanks,
John
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Mattias Johansson: "RE: [PHP-DB] Fetching (and displaying) the 3 newest items from MySQL"
- Previous message: John Starkey: "[PHP-DB] globals"
- In reply to: John Starkey: "[PHP-DB] globals"
- Next in thread: John Starkey: "RE: [PHP-DB] globals"
- Reply: John Starkey: "RE: [PHP-DB] globals"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

