Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
remove number after decimal in php
Alessandro Piccirilli
Programming language:
PHP
2021-04-11 16:09:15
0
Q:
remove number after decimal in php
Naomi
Code:
PHP
2021-06-18 18:44:53
$var = 252.587254564; $var = (int)$var; // 252
0
sle7en
Code:
PHP
2021-02-19 12:22:13
(int)-1.2
0
Tags
number
php
remove
Related
php format int to 9 digits with preceding zeroes
php trim
php remove characters not numbers or letters
2 decimal round using php
remove behind comma php
remove first letter php
how to get only decimal value in php
php round decimal
php how to get decimal after devide
strip non numeric and period php
php remove after character
php 2 decimal places without rounding
php number format without rounding
round to 2 decimal places php
fix to 2 decimal places php
php remove numbers from string
hex to decimal php
php round 2 decimals
remove decimal php
New to Communities?
Join the community