Programming-Idioms

History of Idiom 22 > diff from v7 to v8

Edit summary for version 8 :

Version 7

2015-08-18, 14:57:04

Version 8

2015-08-19, 14:44:57

Idiom #22 Convert string to integer

Extract integer value i from its string representation s (in radix 10)

Idiom #22 Convert string to integer

Extract integer value i from its string representation s (in radix 10)

Code
$i = intval($s, 10);