Wow this formatted badly. (new hotmail on Safari -- MS made FF not even render well) Anyway, are you sure you are reaching the code you want to reach? Perhaps !== is overkill and maybe even wrong when you should use ==. Same with the other === usage? Try some echo "HERE1\n"; echo "HERE2\n"; to see if you are getting to the line you expect. Like after that "count(~) !== ". _________________________________________________________________ Gear up for Halo® 3 with free downloads and an exclusive offer. It’s our way of saying thanks for using Windows Live™. http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php