¡@

Home 

php Programming Glossary: ctype_digit

PHP: producing relative date/time from timestamps

http://stackoverflow.com/questions/2690504/php-producing-relative-date-time-from-timestamps

'now' and 'specific timestamp'. function time2str ts if ctype_digit ts ts strtotime ts diff time ts if diff 0 return 'now' elseif..

is_int and GET or POST

http://stackoverflow.com/questions/3502854/is-int-and-get-or-post

properly handle errors i.e. id not being a number Use ctype_digit to make sure the string consists only of numbers and therefore..

PHP x86 How to get filesize of >2GB file without external program?

http://stackoverflow.com/questions/5501451/php-x86-how-to-get-filesize-of-2gb-file-without-external-program

~zF stat c s file @exec cmd output if is_array output ctype_digit size trim implode n output return size try the Windows COM.. file size f Size catch Exception e size null if ctype_digit size return size if all else fails return filesize file ..

What's the correct way to test if a variable is a number in PHP?

http://stackoverflow.com/questions/8409913/whats-the-correct-way-to-test-if-a-variable-is-a-number-in-php

PHP: intval() equivalent for numbers >= 2147483647

http://stackoverflow.com/questions/990406/php-intval-equivalent-for-numbers-2147483647

wrong with it function intval2 text text trim text result ctype_digit text if result TRUE return text else newText sprintf ' .0f'.. TRUE return text else newText sprintf ' .0f' text result ctype_digit newText if result TRUE return newText else return 0 php.. php function bigintval value value trim value if ctype_digit value return value value preg_replace ^0 9 . '' value if ctype_digit..