Pogledajte određenu poruku
Staro 20. 10. 2011.   #2
webarto
expert
Grand Master
 
Avatar webarto
 
Datum učlanjenja: 11.04.2010
Poruke: 998
Hvala: 141
959 "Hvala" u 153 poruka
webarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished road
Default

http://www.youtube.com/watch?v=4KqUUH0gJQY

Kolega, a što ne nešto ovako ako nisu u pitanju astronomske cifre?

PHP kôd:
function is_strint($input)
{
    return 
$input == (int) $inputtruefalse;
}

echo 
is_strint('42'); # true
echo is_strint('36'); # true
echo is_strint(666); # true
echo is_strint(666.6); # false
echo is_strint('666.6'); # false 
is_strint®
__________________
Github // LinkedIn // PHP // ZCE // Stackoverflow PHP // Site5 Web Hosting
webarto je offline   Odgovorite uz citat