php caster string en int code example Example 1: php string to int Click to copyintval($string); Example 2: php str to int Click to copyintval("15");