PHP code snippet – How convert the string to int in laravel function event? Subash Chandran 24th November 2021 Leave a Comment $num = "3.14"; $int = (int)$num; $float = (float)$num; Curly hair, very fair, please share 🙂Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Telegram (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email a link to a friend (Opens in new window) Related See also Python code snippet - How to check if element is in list ? Snippets how convert the string to int in laravel function event Change font size A Decrease font size. A Reset font size. A Increase font size.