on 22/02/03 11:46 PM, Patrick Teague ([EMAIL PROTECTED]) wrote: > I ran into something interesting & the only thing I can figure out is that > functions won't use any variables other than globals, those past to the > function, or those created inside the function?
exactly :) you bring the array or variable into the scope of the function <? $byteSize[0] = "bytes"; $byteSize[1] = "kb"; $byteSize[2] = "mb"; function getMaxSize( $maxSize ) { global $byteSize; echo $byteSize[0] . "<br/>\n"; echo $byteSize[1] . "<br/>\n"; echo $byteSize[2] . "<br/>\n"; } ?> Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php