I've been dealing with 01 - which is a numeric. string(number($v)) != string($v) makes the segregation