i want to make a variable when transforms 1k or 1,5k into 1000 or 1500
i tried preg_replace but i doesn’t work for me becasue it adds “000” to number so i’d get 1000 and 1,5000
thank you
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.
Outputs “1000” and “1500”. You can see for yourself here.