09.03.2017, 08:12
Quote:
I'm trying to fetch alphabets according to their IDs and I know it's possible but how can I do that? is there something that I can use?
PHP код:
--- I've a object which moves under some specific conditions and it's in the sky but it falls and comes to the ground and/ or destroys. What's must be causing it? Any guesses? |
Each character has a numerical value.
string[0] = 'F' would be the same as doing string[0] = 70, however lowercase and uppercase letters have different values.
So theoretically:
PHP код:
GetAlphabet(alphaid, uppercase = false)
return (uppercase) ? (alphaid + 65) : (alphaid + 97);
Код:
printf("%c %c %c %c", GetAlphabet(6), GetAlphabet(6, .uppercase = true), GetAlphabet(22), GetAlphabet(22, true));
Код:
f F v V