CharToLower()
Hi guys. I need help with this code:
PHP Code:
Why is PHP Code:
|
Re: CharToLower()
Try this:
PHP Code:
PHP Code:
|
Re: CharToLower()
CharToLower only take 1 char not a string but you can accomplish what you are looking for with Wyon answer
|
Re: CharToLower()
CharToLower only works on single characters. As Wyon said, StrEqual has an optional argument that you can set to false to do a case-insensitive comparison (i.e. it will consider "HELP", "help", "hElP", etc... to be equal).
Actually, that reminds me, I wonder if the doc creator will ever be updated to show the default values of optional arguments. The actual signature for StrEqual is PHP Code:
|
Re: CharToLower()
Quote:
|
Re: CharToLower()
Thank you guys! I wasnt expecting such an friendly community!
I was programming C++, and everyone was like "if you dont know it, you are bad programmer". |
Re: CharToLower()
Quote:
jk lol, welcome :) |
Re: CharToLower()
Quote:
What we see: PHP Code:
PHP Code:
|
Re: CharToLower()
Quote:
|
All times are GMT -4. The time now is 21:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.