here are two available ways in PHP for converting float value into integer, in which first is the intval() function and (int).
Float value can be converted into an integer by using Python’s built-in function int(). It converts the first argument’s data type into an integer.