Logo

Programming-Idioms

History of Idiom 55 > diff from v64 to v65

Edit summary for version 65 by mins01:
[PHP] add line

Version 64

2018-02-21, 09:15:04

Version 65

2018-02-21, 09:16:14

Idiom #55 Convert integer to string

Create the string representation s (in radix 10) of integer value i.

Illustration

Idiom #55 Convert integer to string

Create the string representation s (in radix 10) of integer value i.

Illustration
Extra Keywords
int base radix conversion
Extra Keywords
int base radix conversion
Code
$s = (string)$i;
$s = "{$i}";
Code
$s = "".$i;
$s = (string)$i;
$s = "{$i}";