decimal to string php code example Example 1: integer to string php return strval($integer); Example 2: php float value floatval ($var)