Hello my Success-Oriented Friends,
Firstly, how do i code my MT_RAND() command to generate just 4 digit numbers for my PIN and confirmation.
Secondly, how do i make the number entered into one of the fields in my form to appear as currency. I want dot (.) to com after the first two digits and comma(,) after every 3 digits for it to look like this (1,234,567.89).
Regards
adsegzy
generating 4 digit figures adding comma(), & dot (.)
Moderator: General Moderators
Re: generating 4 digit figures adding comma(), & dot (.)
First: http://www.php.net/manual/en/function.mt-rand.php
Second: http://www.php.net/number_format
Let me know if it's not clear
Second: http://www.php.net/number_format
Let me know if it's not clear
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: generating 4 digit figures adding comma(), & dot (.)
Duplicate. Locked.