I was wondering if its possible to convert a number into a string using php? Let’s say I want to convert "25,435" into twenty five thousand four hundred thirty five.
Any idea how?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s nothing in PHP by default to do this, but you can quite easily find something by Googling for “PHP number to word”.
http://www.krishnasrikanth.com/portfolio/works.php?app=numbwordter
http://www.phpro.org/examples/Convert-Numbers-to-Words.html