Project

General

Profile

Actions

Added in 4.3

$isnum(text [, cdens])

Returns $true if the text is a number, otherwise $false.

Same as $isnumber.

Parameters

Parameter Description
c Enables 's' and 'd', partial TODO
d Allows decimal numbers.
e Allows scientific (exponential) notations.
n Allows regular numbers.
s Allows leading + and minus signs.

Example

; Returns $false
//echo -ag $isnum(abc)

; Returns $true
//echo -ag $isnum(555)

Updated by Per Amundsen almost 2 years ago · 2 revisions

Also available in: PDF HTML TXT