Reply to comment

and that's where PHP starts

and that's where PHP starts to lose it's mind...

(int) "x"should be cast to NaN, not 0, as it is not a number! http://en.wikipedia.org/wiki/NaN

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options