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