A
A
Albert Kazan2016-10-18 12:17:32
PHP
Albert Kazan, 2016-10-18 12:17:32

How to compare strings case sensitive?

Let's say there are two variables whose values ​​are "Grisha" and "grishA". When compared using "==" they are equal.
How to compare? And how to find such a string in the database with the exact case of letters?
ps In Google, I don’t know what query to search through.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
D', 2016-10-18
@Farrien

php.net/strcmp
>И как найти в базе такую строку с точным регистром букв?
Для этого в базе должна быть кодировка которая учитывает регистр букв (cs, а не ci)

N
Nikita, 2016-10-18
@jetu

ps In Google, I don’t know what query to search through.

let me help you

P
Puma Thailand, 2016-11-28
@opium

open the description of the rtf format (it is light) and parse it with handles in any language

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question