```
if($array[$i]['positiveOrNegative'] == 'p')

```

This array value is pulled from MySQL DB, from a CHAR(1) column. I've var\_dumped both variables and BOTH return string(1) p

I have NO idea in the world why this isn't evaluating correctly, it's honestly blowing my mind. It does work if I do `p == p`. Also, `strcmp($array[$i]['positiveOrNegative'],p)` returns 1 (meaning they are NOT the same). How, on earth, could this be!?

**--------UPDATE:**

Wait, I must have VarDumped badly.... now my variable is this:

* $array[$i]['positiveOrNegative']
* string(4) "p"

AND

* var\_dump(p)
* string(1) "p"

How is the variable p inside MySQL a string(4) ???

**More Updates...**
Every entry in that column is a string(4), but they are all one letter (n or p). Further, they are string(4)'s even when I insert the letter by hand with PHPMyAdmin...