in to string php code example Example: php to string $number = 10; // To convert this number to a string: $numberString = (string)$number;