> This works excellently. Thanks. One problem that I > didn't think of, though: If the number is 0 (only 0), > then the string ends up being empty. Is there a way > around that? I put an if statement in saying if the > string is empty, then the string is 0. Any better way?
Again, if the string is numbers only, you can do: $string = "0"; $string = (int)$string; Typecasting it to an integer will do what you want. But only if your string is numbers only. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php