* Thus wrote John Ryan ([EMAIL PROTECTED]): > When I use for loops, at the start of each iteration, the variables hold the > values from the last loop. > > First, is there an elegant way of clearing variables at the start of each > loop rather than using unset???! It just seems wrong.
I'm unclear as to what elegant implies. > > Also, all my problems would be solved if variables in a for loop were kept > local, but everything by default is a global. Can I change this in php.ini > or something?? no, there are only two scopes in php, it is either GLOBAL or local inside a function/class. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php