Help adding strtolower( to my in_array


Posted on 16th Feb 2014 07:03 pm by admin

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

Code: $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

No comments posted yet

Your Answer:

Login to answer
252 Like 20 Dislike
Previous forums Next forums
Other forums

Is there a more efficient way to code this than what I have?
I have three associative arrays.

$combinedSettings
$userSettings
$defaultSettings

Need help making login verification cleaner...
I use the below to verify user login. I first check the cookie for the id, ip and a unique id. If it

Unable to display contents in Second Drop Down Box
Hi All,

What I am trying to do is 2 dependent drop down boxes and when user selects su

Connecion issue
Hi,

For some reason, I keep getting this error when trying to connect:

Warning: mysql_

how to load php class from another domain?
how to load php class from another domain?

DOMDocument parsing
Hello, I am parsing an xml file from an API which I have converted into a DOMDocument in php. This i

Create PHP table grid help, please
I have a MySQL database setup, now it's time for the table (gridview) design in php. Here's the prob

Inserting 100x and 100y coordinates in mysql table - easy
Is there a way to insert this data into a mysql table named 'map' with the fields: 'x int 3' , 'y in

Any meaningful project for a new C++ programmer?
I want to do some meaningful program, so I can help myself to learn

Assume I know the fol

socket makes browser hang...
I have a socket server, and I am having a problem at the moment...

A browser sends a http hea

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash