type conversion - How do I convert a string to a number in PHP? - Stack Overflow
I want to convert these types of values, '3', '2.34', '0.234343', etc. to a number. In JavaScript we can use number(), but are there any similar method available in PHP (general solution)? Input ... ... In whatever (loosely-typed) language you can always ...