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

Relative path
I have a absolute path to an image - like so: C:/Program Files/Apache Software Foundation/Apache2.2/

Namespace Problem
I'm having problem with a section of code with a variable namespace.

This code works fine:

MySQL noob question
hi guys

I have a simple mysql table set up, along the lines of

Col 1 - Col 2 - Date_l

URL Rewrite issue
Im created a series of Rewrites and on page checks to make sure the correct url is being called. But

urldecode question
How would I format this line of code properly?

<?php echo urldecode($_GET['Title']); ?

Locking mysql tables with php
Hi

BACKGROUND:
I have multiple instances of the same php script running in a WAMP environ

problems with script
I made a small script wich exchanges points in my website:


<?php
session_start

Confusing Functions
So, I've been reading up on Functions and I like them! However, I need some help using variables in

chat
hello i'm amir i need a chat source code in asp.net 2.0 without Ajax. anybody can help me?

Code Help.. If txt input box empty search X instead..
I am having a problem with my search script. At current it will simply search by a selected date whi

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