Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * This function takes a string containing a decimal number and converts it into a string
- * If the string isn't a valid number, 0 is returned
- * @param string $numberString the string to convert
- * @retunr int the converted number, 0 on failure
- */
- function stringToInt($numberString)
- {
- //the actual implementation...
- }
Add Comment
Please, Sign In to add comment