Re: Case Insensativity in String Comparisons

From: Date: Tue, 25 Aug 2009 16:57:16 +0000
Subject: Re: Case Insensativity in String Comparisons
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-297204@lists.php.net to get a copy of this message
On Tue, Aug 25, 2009 at 12:48 PM, Ben Miller<biprellim@gmail.com> wrote: > Is there a simple to way to compare two strings with case insensitivity so > that the following will return true? > > $foo = "Arnold"; > $bar = "arnold"; > > If($foo == $bar) { > > } > > Thanks. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > http://www.php.net/manual/en/function.strcasecmp.php

« previous php.general (#297204) next »