Php token validation showing json string as true

Link to sample of the code?