in reply to Removing leading zeros

Argh, everybody's gone regex mad!

  1. if you're using the number mathematically, you don't need to remove the leading zeroes; or
  2. $var+=0;
cLive ;-)