There are special characters at the beginning of the first EMAIL string. When I copied/pasted the code above, I get 2. When I type everything out manually from scratch, I get 1. If I paste the code into a raw text field, I get what visually appears to be a tabbed space. Something like so:
Code:
if (' EMAIL' == 'EMAIL'){
So let's just split the strings by character and see what we get.
PHP Code:
$chars = str_split( 'EMAIL' );
print_r( $chars );
$chars = array_map( 'ord', $chars );
print_r( $chars );
First EMAIL string:
Code:
Array
(
[0] => ï
[1] => »
[2] => ¿
[3] => E
[4] => M
[5] => A
[6] => I
[7] => L
)
Array
(
[0] => 239
[1] => 187
[2] => 191
[3] => 69
[4] => 77
[5] => 65
[6] => 73
[7] => 76
)
Second EMAIL string:
Code:
Array
(
[3] => E
[4] => M
[5] => A
[6] => I
[7] => L
)
Array
(
[3] => 69
[4] => 77
[5] => 65
[6] => 73
[7] => 76
)