Logo

Programming-Idioms

History of Idiom 94 > diff from v14 to v15

Edit summary for version 15 by :
New PHP implementation by user [Feifan]

Version 14

2016-02-18, 16:58:02

Version 15

2016-02-26, 16:30:23

Idiom #94 Print type of variable

Print the name of the type of x. Explain if it is a static type or dynamic type.

This may not make sense in all languages.

Idiom #94 Print type of variable

Print the name of the type of x. Explain if it is a static type or dynamic type.

This may not make sense in all languages.

Code
echo gettype($x);
Comments bubble
$x is dynamic type