J J <mailto:[EMAIL PROTECTED]>
    on Wednesday, March 10, 2004 4:22 PM said:

> Will it be able to figure out what the last number is
> if it's a character type and the number is something
> like 00003?  So it'll add one to make it 00004 and not
> something like 10003.

php knows. you'll just have to pad the string with zeros.

<?php

  $number = "000001";

  ++$number;

  echo $number;

?>

that will output "2" not "1000001".


chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to