|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-07-21 13:35 UTC] rasmus
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 09 08:00:01 2025 UTC |
The functions is_int() and is_long() don't return true if the given argument is a variable: echo is_int(12345); --> 1 echo is_int("12345"); --> (nothing returned!!) $abc = "12345"; echo is_int($abc); --> (nothing returned!!) echo is_int("abcdef"); --> (nothing returned!!) $abc = "abcdef"; echo is_int($abc); --> (nothing returned!!) Is this behaviour a bug or a feature?