0

I am comparing a string to check if a user already exist's , im doing it with ajax and i was sending an echo to compare it. and my comparison was always false and i was going crazy until i saw that BUG (don't know what to call that). Can someone explain me why this happens in php scripts?enter image description here

enter image description here

Xorifelse
  • 7,878
  • 1
  • 27
  • 38

1 Answers1

0

It's common practice in pure php scripts to omit closing tag, thats to avoid an infinite list of problems with invisible characters in the response.

Its even recommended in the php manual

You can find more infos, some also related to ajax call/response, in this stackoverflow question.

Community
  • 1
  • 1
dparoli
  • 8,891
  • 1
  • 30
  • 38