Reply to comment

even casting won't help you!

<?php
$a
= (string) 'x';
$b = (int) 0;
var_dump((int) $a === $b);
var_dump($a === (string) $b);
?>
.
Output:
bool(true);
bool(false);

so... there is a difference between $a and $b... or is there... *sigh*

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