php function integer parameter problem

Posted by vick on Stack Overflow See other posts from Stack Overflow or by vick
Published on 2010-04-22T22:14:09Z Indexed on 2010/04/22 22:23 UTC
Read the original article Hit count: 169

Filed under:
function is_zipcode_valid($zipcode){ ... }

if I call that function with is_zipcode_valid(08004); my parameter 08004 gets in as 8004, basically it removed all precending 0's.

How can I get around that problem?

thanks

© Stack Overflow or respective owner

Related posts about php