I have a function and I am defining an array inside it. However I declare the array outside the function so I thought it would be global, however outside the function I can't read the array.
I define it as:
$imagearray = array();
Then I define each component inside the function.
I define it as:
$imagearray = array();
Then I define each component inside the function.