Jump to content

Help adding strtolower( to my in_array


Baseball

Recommended Posts

strtolower i need to add it to this to work, iuno how.

 

$moderators = array('Admin', 'banana', 'orange');
if (in_array("{$_SESSION['user_name']}", $moderators))
    print('Found it!');

 

i want str to lower to be added cause i need it to ignore if it's upper or lowercase letters by making it all lowercase olol

Link to comment
https://forums.phpfreaks.com/topic/186295-help-adding-strtolower-to-my-in_array/
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.