# why is '01' == '1.'?

- Thread: https://externals.io/message/21233
- Original archive: https://news-web.php.net/php.internals/21233
- Started by Bart de Boer on 2005-12-15T15:03:03+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #21233 — Bart de Boer — 2005-12-15T15:03:03+00:00

URL: https://externals.io/message/21233#21233

Don't forget that one fundamental aspect of PHP is, that it's a web
language and thus receives most of its input from the web.
Therefore it usually only gets strings as input.

Consider ($_POST['intfield1'] == $_POST['intfield2'])

Both variables would be strings. Still if someone would input '01'
and '1.' you'd want this expression to return true.
