Jump to content

Checking strings help


UnknownPlayer

Recommended Posts

When i wonna test:

 

$text1 = "This";
$text2 = "This";

if ($text1 == $text2) - true

 

it works when text is same, but when i wonna test this one:

 

$text1 = "This";
$text2 = "this";

if ($text1 == $text2) - false

 

it is true but "T" char is first var i upper, but in second var "t" is lower, how can i get that both are true, i mean how can i test this string, but with upper and lower?

Link to comment
https://forums.phpfreaks.com/topic/203964-checking-strings-help/
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.