how do you access an array in an included/required field?
From: NotGiven (noname_at_nonegiven.net)
Date: 11/29/03
- Next message: Pedro Graca: "Re: how do you access an array in an included/required field?"
- Previous message: Fran: "Re: SQL JOIN Problem !!! Could you help me please ???"
- Next in thread: Pedro Graca: "Re: how do you access an array in an included/required field?"
- Reply: Pedro Graca: "Re: how do you access an array in an included/required field?"
- Reply: Tormod Fjeldskår: "Re: how do you access an array in an included/required field?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 29 Nov 2003 10:58:24 -0500
I have a large array that would be messy to include in the file "main.php"
itself and would prefer to include/require it. Say I have the following
line in "main.php":
require_once('/arr.php');
And the "arr.php" file looks something like this:
<?php
array(1)='ok1@Ok.com';
array(2)='ok2@Ok.com';
array(3)='ok3@Ok.com';
array(4)='ok4@Ok.com';
array(5)='ok5@Ok.com';
array(6)='ok6@Ok.com';
array(7)='ok7@Ok.com';
array(8)='ok8@Ok.com';
array(9)='ok9@Ok.com';
array(10)='ok10@Ok.com';
?>
Would I be able to reference the array AS IF I had declared the array in
"main.php"?
I am a programmer but new to PHP.
Many thanks.
- Next message: Pedro Graca: "Re: how do you access an array in an included/required field?"
- Previous message: Fran: "Re: SQL JOIN Problem !!! Could you help me please ???"
- Next in thread: Pedro Graca: "Re: how do you access an array in an included/required field?"
- Reply: Pedro Graca: "Re: how do you access an array in an included/required field?"
- Reply: Tormod Fjeldskår: "Re: how do you access an array in an included/required field?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|