I found this co开发者_开发问答de for alphanumeric check (\"Letters, numbers, spaces or underscores\") but I want to change so I will be able to write only letters or numbers. Can anyone tell me how to
I\'m writing text-images on the fly with PHPs imagettftext, which works fine so far, but I have a very strange problem.
In my code I need to compare string letters but my problem is that lower case letters are greater th开发者_开发知识库an upper case letter.
I am looking for the shortest, simplest and most ele开发者_运维百科gant way to count the number of capital letters in a given string.function count_capitals($s) {