Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

How to display 0 and true in "is_int" in php?

$
0
0
The instruction is to get the is_int with the following.

Example:
$num1 = 123;
$num2 = "123";

then get the is_int:
is_int ($num1); => result is true but displays in the browser 1 the instruction is to display true
is_int ($num2); => none is displayed in the browser since the answer to that condition is false, but the instruction is to display in the browser 0

how to get this?
any idea?

any help will be appreciated.. thank you!! :)

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>