php decompose int code example Example: convert string to int php intval ( mixed $var [, int $base = 10 ] ) : int