TextData
Tags
Table of Contents
- ASCIICODE() : array<string|int, mixed>|int|string
- ASCIICODE.
- builtinREPT() : array<string|int, mixed>|string
- REPT.
- CHARACTER() : array<string|int, mixed>|string
- CHARACTER.
- CONCATENATE() : string
- CONCATENATE.
- DOLLAR() : array<string|int, mixed>|string
- DOLLAR.
- EXACT() : array<string|int, mixed>|bool
- Compares two text strings and returns TRUE if they are exactly the same, FALSE otherwise.
- FIXEDFORMAT() : array<string|int, mixed>|string
- FIXEDFORMAT.
- LEFT() : array<string|int, mixed>|string
- LEFT.
- LOWERCASE() : array<string|int, mixed>|string
- LOWERCASE.
- MID() : array<string|int, mixed>|string
- MID.
- NUMBERVALUE() : array<string|int, mixed>|float|string
- NUMBERVALUE.
- PROPERCASE() : array<string|int, mixed>|string
- PROPERCASE.
- REPLACE() : array<string|int, mixed>|string
- REPLACE.
- RETURNSTRING() : null|array<string|int, mixed>|string
- RETURNSTRING.
- RIGHT() : array<string|int, mixed>|string
- RIGHT.
- SEARCHINSENSITIVE() : array<string|int, mixed>|int|string
- SEARCH.
- SEARCHSENSITIVE() : array<string|int, mixed>|int|string
- FIND.
- STRINGLENGTH() : array<string|int, mixed>|int
- STRINGLENGTH.
- SUBSTITUTE() : array<string|int, mixed>|string
- SUBSTITUTE.
- TEXTFORMAT() : array<string|int, mixed>|string
- TEXTFORMAT.
- TEXTJOIN() : array<string|int, mixed>|string
- TEXTJOIN.
- TRIMNONPRINTABLE() : null|array<string|int, mixed>|string
- TRIMNONPRINTABLE.
- TRIMSPACES() : array<string|int, mixed>|string
- TRIMSPACES.
- UPPERCASE() : array<string|int, mixed>|string
- UPPERCASE.
- VALUE() : array<string|int, mixed>|DateTimeInterface|float|int|string
- VALUE.
Methods
ASCIICODE()
ASCIICODE.
public
static ASCIICODE(array<string|int, mixed>|string $characters) : array<string|int, mixed>|int|string
Parameters
- $characters : array<string|int, mixed>|string
-
Value
Tags
Return values
array<string|int, mixed>|int|string —A string if arguments are invalid
builtinREPT()
REPT.
public
static builtinREPT(array<string|int, mixed>|string $str, mixed $number) : array<string|int, mixed>|string
Returns the result of builtin function repeat after validating args.
Parameters
- $str : array<string|int, mixed>|string
-
Should be numeric
- $number : mixed
-
Should be int
Tags
Return values
array<string|int, mixed>|string —CHARACTER()
CHARACTER.
public
static CHARACTER(string $character) : array<string|int, mixed>|string
Parameters
- $character : string
-
Value
Tags
Return values
array<string|int, mixed>|string —CONCATENATE()
CONCATENATE.
public
static CONCATENATE(mixed ...$args) : string
Parameters
- $args : mixed
Tags
Return values
string —DOLLAR()
DOLLAR.
public
static DOLLAR(float $value[, int $decimals = 2 ]) : array<string|int, mixed>|string
This function converts a number to text using currency format, with the decimals rounded to the specified place. The format used is $#,##0.00_);($#,##0.00)..
Parameters
- $value : float
-
The value to format
- $decimals : int = 2
-
The number of digits to display to the right of the decimal point. If decimals is negative, number is rounded to the left of the decimal point. If you omit decimals, it is assumed to be 2
Tags
Return values
array<string|int, mixed>|string —EXACT()
Compares two text strings and returns TRUE if they are exactly the same, FALSE otherwise.
public
static EXACT(mixed $value1, mixed $value2) : array<string|int, mixed>|bool
EXACT is case-sensitive but ignores formatting differences. Use EXACT to test text being entered into a document.
Parameters
- $value1 : mixed
- $value2 : mixed
Tags
Return values
array<string|int, mixed>|bool —FIXEDFORMAT()
FIXEDFORMAT.
public
static FIXEDFORMAT(mixed $value[, int $decimals = 2 ][, bool $no_commas = false ]) : array<string|int, mixed>|string
Parameters
- $value : mixed
-
Value to check
- $decimals : int = 2
- $no_commas : bool = false
Tags
Return values
array<string|int, mixed>|string —LEFT()
LEFT.
public
static LEFT([array<string|int, mixed>|string $value = '' ][, array<string|int, mixed>|int $chars = 1 ]) : array<string|int, mixed>|string
Parameters
- $value : array<string|int, mixed>|string = ''
-
Value
- $chars : array<string|int, mixed>|int = 1
-
Number of characters
Tags
Return values
array<string|int, mixed>|string —LOWERCASE()
LOWERCASE.
public
static LOWERCASE(array<string|int, mixed>|string $mixedCaseString) : array<string|int, mixed>|string
Converts a string value to lower case.
Parameters
- $mixedCaseString : array<string|int, mixed>|string
Tags
Return values
array<string|int, mixed>|string —MID()
MID.
public
static MID([array<string|int, mixed>|string $value = '' ][, array<string|int, mixed>|int $start = 1 ][, array<string|int, mixed>|int $chars = null ]) : array<string|int, mixed>|string
Parameters
- $value : array<string|int, mixed>|string = ''
-
Value
- $start : array<string|int, mixed>|int = 1
-
Start character
- $chars : array<string|int, mixed>|int = null
-
Number of characters
Tags
Return values
array<string|int, mixed>|string —NUMBERVALUE()
NUMBERVALUE.
public
static NUMBERVALUE([mixed $value = '' ][, string $decimalSeparator = null ][, string $groupSeparator = null ]) : array<string|int, mixed>|float|string
Parameters
- $value : mixed = ''
-
Value to check
- $decimalSeparator : string = null
-
decimal separator, defaults to locale defined value
- $groupSeparator : string = null
-
group/thosands separator, defaults to locale defined value
Tags
Return values
array<string|int, mixed>|float|string —PROPERCASE()
PROPERCASE.
public
static PROPERCASE(array<string|int, mixed>|string $mixedCaseString) : array<string|int, mixed>|string
Converts a string value to proper/title case.
Parameters
- $mixedCaseString : array<string|int, mixed>|string
Tags
Return values
array<string|int, mixed>|string —REPLACE()
REPLACE.
public
static REPLACE(string $oldText, int $start, int $chars, string $newText) : array<string|int, mixed>|string
Parameters
- $oldText : string
-
String to modify
- $start : int
-
Start character
- $chars : int
-
Number of characters
- $newText : string
-
String to replace in defined position
Tags
Return values
array<string|int, mixed>|string —RETURNSTRING()
RETURNSTRING.
public
static RETURNSTRING([mixed $testValue = '' ]) : null|array<string|int, mixed>|string
Parameters
- $testValue : mixed = ''
-
Value to check
Tags
Return values
null|array<string|int, mixed>|string —RIGHT()
RIGHT.
public
static RIGHT([array<string|int, mixed>|string $value = '' ][, array<string|int, mixed>|int $chars = 1 ]) : array<string|int, mixed>|string
Parameters
- $value : array<string|int, mixed>|string = ''
-
Value
- $chars : array<string|int, mixed>|int = 1
-
Number of characters
Tags
Return values
array<string|int, mixed>|string —SEARCHINSENSITIVE()
SEARCH.
public
static SEARCHINSENSITIVE(array<string|int, mixed>|string $needle, array<string|int, mixed>|string $haystack[, array<string|int, mixed>|int $offset = 1 ]) : array<string|int, mixed>|int|string
Parameters
- $needle : array<string|int, mixed>|string
-
The string to look for
- $haystack : array<string|int, mixed>|string
-
The string in which to look
- $offset : array<string|int, mixed>|int = 1
-
Offset within $haystack
Tags
Return values
array<string|int, mixed>|int|string —SEARCHSENSITIVE()
FIND.
public
static SEARCHSENSITIVE(array<string|int, mixed>|string $needle, array<string|int, mixed>|string $haystack[, array<string|int, mixed>|int $offset = 1 ]) : array<string|int, mixed>|int|string
Parameters
- $needle : array<string|int, mixed>|string
-
The string to look for
- $haystack : array<string|int, mixed>|string
-
The string in which to look
- $offset : array<string|int, mixed>|int = 1
-
Offset within $haystack
Tags
Return values
array<string|int, mixed>|int|string —STRINGLENGTH()
STRINGLENGTH.
public
static STRINGLENGTH([string $value = '' ]) : array<string|int, mixed>|int
Parameters
- $value : string = ''
-
Value
Tags
Return values
array<string|int, mixed>|int —SUBSTITUTE()
SUBSTITUTE.
public
static SUBSTITUTE([string $text = '' ][, string $fromText = '' ][, string $toText = '' ], int $instance) : array<string|int, mixed>|string
Parameters
- $text : string = ''
-
Value
- $fromText : string = ''
-
From Value
- $toText : string = ''
-
To Value
- $instance : int
-
Instance Number
Tags
Return values
array<string|int, mixed>|string —TEXTFORMAT()
TEXTFORMAT.
public
static TEXTFORMAT(mixed $value, string $format) : array<string|int, mixed>|string
Parameters
- $value : mixed
-
Value to check
- $format : string
-
Format mask to use
Tags
Return values
array<string|int, mixed>|string —TEXTJOIN()
TEXTJOIN.
public
static TEXTJOIN(mixed $delimiter, mixed $ignoreEmpty, mixed ...$args) : array<string|int, mixed>|string
Parameters
- $delimiter : mixed
- $ignoreEmpty : mixed
- $args : mixed
Tags
Return values
array<string|int, mixed>|string —TRIMNONPRINTABLE()
TRIMNONPRINTABLE.
public
static TRIMNONPRINTABLE([mixed $stringValue = '' ]) : null|array<string|int, mixed>|string
Parameters
- $stringValue : mixed = ''
-
Value to check
Tags
Return values
null|array<string|int, mixed>|string —TRIMSPACES()
TRIMSPACES.
public
static TRIMSPACES([mixed $stringValue = '' ]) : array<string|int, mixed>|string
Parameters
- $stringValue : mixed = ''
-
Value to check
Tags
Return values
array<string|int, mixed>|string —UPPERCASE()
UPPERCASE.
public
static UPPERCASE(string $mixedCaseString) : array<string|int, mixed>|string
Converts a string value to upper case.
Parameters
- $mixedCaseString : string
Tags
Return values
array<string|int, mixed>|string —VALUE()
VALUE.
public
static VALUE([mixed $value = '' ]) : array<string|int, mixed>|DateTimeInterface|float|int|string
Parameters
- $value : mixed = ''
-
Value to check
Tags
Return values
array<string|int, mixed>|DateTimeInterface|float|int|string —A string if arguments are invalid