isfloat . string . sncode
ISFLOAT
NAME
isfloat - Checks if the argument is a float number.
SYNOPSIS
isfloat(variable);
DESCRIPTION
This function is used to determine if the argument is a float number.
A float number start with an optional + or - followed by an optional number followed by a dot '.' followed by 0 or more numbers.
EXAMPLES
isinteger("a56"); isfloat("45.65"); isfloat(".65"); isfloat("4."); isfloat("4"); isfloat("+4.."); isfloat("+."); isfloat("."); isfloat(""); isinteger(""); return res=falsefalsetruetruetruetruefalsefalsefalsefalsefalse.
AUTHOR
Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>
Other functions in String
Quote string with slashes.
base64_decodeDecodes data with MIME base64
base64_encodeEncodes data with MIME base64
bin2hexConverts binary data into hexadecimal representation
cgidataparse cgidata
chrReturn a specific character
chunk_splitSplit a string into smaller chunks.
Count_charsReturn information about characters used in a string.
crc32Calculates the crc32 polynomial of a string.
dqThis function is used to use any characters as quotes in str ...
escThis function is used to apply a filter to a string.
explodeSplit a string by string
extentionReturn the length of an expression.
find_in_setThis function is used to check is a value is set within a li ...
getnbreThis function returns the number of match regular expression
getoffsetThis function returns the position of the last match regular ...
getreThis function return the value of a named parameter in a reg ...
hashCalculate the hash of a string.
hex2binDecodes a hexadecimally encoded binary string.
hmacCompute HMAC
html2textConvert html text to plain text.
htmlentitiesConvert all applicable characters to HTML entities.
htmlspecialcharsConvert special characters to HTML entities.
htmlspecialchars_decodeConvert HTML entities to special characters
html_entity_decodeConvert all HTML entities to special characters
implodeJoin array elements with a string.
isalnumThis function is used to verify that the argument string con ...
isalphaChecks for an alphabetic character.
isasciiChecks whether c is a 7-bit unsigned char value that fits in ...
isblankTest for whitespace wide character.
iscntrlChecks for an control character.
isdigitChecks for a digit (0 through 9).
isgraphChecks whether c is a character with graphical representatio ...
isintegerChecks for a digit (0 through 9) that may be preceed by + or ...
islowerChecks for a lower-case character.
isprintChecks for any printable character including space.
ispunctChecks for any printable character which is not a space or a ...
issetThis function is used to check if a value is contained in a ...
isspaceChecks whether c is a white-space character.
isupperChecks for a upper-case character.
iswalnumThis function is used to verify that the argument string con ...
iswalphaChecks for an alphabetic character.
iswblankTest for whitespace wide character.
iswcntrlChecks for an control character.
iswdigitChecks for a digit (0 through 9).
iswgraphChecks whether c is a character with graphical representatio ...
iswlowerChecks for a lower-case character.
iswprintChecks whether c is a character with graphical representatio ...
iswpunctChecks for any printable character which is not a space or a ...
iswspaceChecks whether c is a white-space character.
iswupperChecks for a upper-case character.
Checks for a hexadecimal digits, i.e. one of 0 1 2 3 4 5 6 7 ...
isxdigitChecks for a hexadecimal digits, i.e. one of 0 1 2 3 4 5 6 7 ...
lcThis function returns the lowercase value of a string.
lcfirstReturns lc value of a string’s first character.
lengthReturns the length of an expression
levenshteinReturn the distance between 2 strings.
ltrimEliminates whitespace from the beginning of a string.
money_formatFormats a number as a currency string.
nl2brInserts HTML line breaks before all newlines in a string
number_formatFormats a number as a regional number string
ordReturn Unicode value of character.
parseParse strings.
parse_query_stringThis function is used to parse a query string.
printOutput a string.
printfPrint formatted text.
quotemetaQuote meta characters.
resubPerform a regular expression substitute.
rindexLocate character in string (last occurence).
rtrimStrip whitespace (or other characters) from the end of a str ...
savecsvStores array to a file.
savexlsExport data to xls (Excel format)
setlocaleStrip whitespace (or other characters) from the end of a str ...
splitThis function is used to split a string.
splitreThis function is used to split a string with a regular expre ...
strcasecmpCase-insensitive string comparison.
strcspnFind length of initial segment not matching mask.
strinatcmpCase insensitive string comparisons using a natural order al ...
stringnifyTake an expression and return a string.
striposFind the position of the first occurrence of a case-insensit ...
stripslashesUn-quotes a quoted string
strip_tagsStrip HTML and extenso tags from a string.
strnatcmpString comparisons using a natural order algorithm.
strncasecmpCase-insensitive string comparison of the first n characters ...
strncmpComparison of the first n characters.
strposFind the position of the first occurrence of a substring in ...
strrevReverse a string
strriposFind the position of the last occurrence of a case-insensiti ...
strrposFind the position of the last occurrence of a substring in a ...
strsubreturn a substring from the original string.
strtrTranslate characters or replace substrings.
strtr_ctxTranslate substrings.
strtr_listTranslate substrings.
str_getcsvParse a CSV string into an array.
str_ireplaceReplace all occurrences of the search string with the replac ...
str_padPad a string to a certain length with another string.
str_repeatRepeat a string
str_replaceReplace all occurrences of the search string with the replac ...
str_shuffleRandomly shuffles a string
str_splitConvert a string to an array.