Convert string to integer Java - Android result = Integer.parseInt(string); Javascript result = parseInt(string); Objective-C result = [string intValue]; PHP $result = (int)$string;