The intval() function is used to convert a value to an integer.
By using intval(), any decimal or fractional part of the quantity value will be truncated, and only the integer part will be displayed. This can be useful if you want to ensure that the quantity is displayed as a whole number without any decimal places.
Eg:echo “<td>” . intval($item->getQty()) . “</td>”;