Intosia Posted May 17, 2007 Share Posted May 17, 2007 Hi, Is there a function like this? $i = 3 $width = 3 $i = foo($i, $width) $i is now '003'. So width is 3 then 12 becomes 012. Hope u understand? Change my avatar! ^^ Link to comment Share on other sites More sharing options...
MHz Posted May 17, 2007 Share Posted May 17, 2007 There is StringFormat(). That function can pad zero's and such for the display of your Int as you show. Link to comment Share on other sites More sharing options...
Intosia Posted May 17, 2007 Author Share Posted May 17, 2007 Hmm ok I looked at the function in the help... but... i understand its something with the Width parameter, but i dont see how i should use it.... Can u give me a example? Change my avatar! ^^ Link to comment Share on other sites More sharing options...
Intosia Posted May 17, 2007 Author Share Posted May 17, 2007 Edit: Nevermind i got it, i looked it up in the PHP manual, they had a nice example Change my avatar! ^^ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now