Jump to content

case sensitivity if/then statement


SF23103

Recommended Posts

Is there a way to change the statement below so that it ignores case sensitivity of the variable?  for instance, the statement would be true if $category == 'Admissions', 'ADMISSIONS', 'admissions', etc.

 

For some reason I'm having the worst time finding this via google search and know y'all will be able to help!

if ($category == 'Admissions') {
echo '  <a href="#">-Forms</a><br />  <a href="#">-Tuition</a><br />'; } ?>

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/290622-case-sensitivity-ifthen-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.