31.12.2017, 10:04
Quote:
|
Originally Posted by adri1
for(new i, j = strlen(the_password_here); i < j; i++)
{ if(the_password_here[i] == 'the_existing_number') the_password_here[i] = 'replace_with_this'; } |
PHP код:
for(new i, j = strlen(inputtext); i <= j; i++)
{
if(inputtext[i] == '1') inputtext[i] = 'a';
if(inputtext[i] == '2') inputtext[i] = 'b';
if(inputtext[i] == '3') inputtext[i] = 'c';
if(inputtext[i] == '4') inputtext[i] = 'd';
if(inputtext[i] == '5') inputtext[i] = 'e';
if(inputtext[i] == '6') inputtext[i] = 'f';
if(inputtext[i] == '7') inputtext[i] = 'g';
if(inputtext[i] == '8') inputtext[i] = 'h';
if(inputtext[i] == '9') inputtext[i] = 'i';
if(inputtext[i] == '0') inputtext[i] = 'j';
}

