I'm trying to compare two strings, but something unusual happens. I have the code:
<?php
$char = 'Á';
var_dump('Á');
var_dump($char);
The variable $char
receives 'Á' and the result is as follows.
string 'Ã' (length=2)
string 'Ã' (length=1)
Exactly the same values but with different sizes. Any idea why this?