Im trying to build an array from elements I have stored in a text file
(So I can access them on multiple pages). What is the syntax for this?
I thought it might be...
storedArray1 = array(require_o nce("/arrays/stored_array_1. txt"));
or
storedArray1 = array(include("/arrays/stored_array_1. txt"));
but I guess you can only use the 'include' statement when inserting
text into html code NOT php code? TIA -Nick
(So I can access them on multiple pages). What is the syntax for this?
I thought it might be...
storedArray1 = array(require_o nce("/arrays/stored_array_1. txt"));
or
storedArray1 = array(include("/arrays/stored_array_1. txt"));
but I guess you can only use the 'include' statement when inserting
text into html code NOT php code? TIA -Nick
Comment