Php string to int. Строки php. strtok c++ для string. str в php. string в php пример.