Methods summary
private static
|
|
public static
integer
|
#
CHARACTER( string $character )
CHARACTER
Parameters
Returns
integer
|
public static
string
|
#
TRIMNONPRINTABLE( mixed $stringValue = '' )
TRIMNONPRINTABLE
Parameters
- $stringValue
- Value to check
Returns
string
|
public static
string
|
#
TRIMSPACES( mixed $stringValue = '' )
TRIMSPACES
Parameters
- $stringValue
- Value to check
Returns
string
|
public static
integer
|
#
ASCIICODE( string $characters )
ASCIICODE
Parameters
Returns
integer
|
public static
string
|
|
public static
string
|
#
DOLLAR( float $value = 0, integer $decimals = 2 )
DOLLAR
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
- The value to format
- $decimals
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
Returns
string
|
public static
string
|
#
SEARCHSENSITIVE( string $needle, string $haystack, integer $offset = 1 )
SEARCHSENSITIVE
Parameters
- $needle
- The string to look for
- $haystack
- The string in which to look
- $offset
- Offset within $haystack
Returns
string
|
public static
string
|
#
SEARCHINSENSITIVE( string $needle, string $haystack, integer $offset = 1 )
SEARCHINSENSITIVE
Parameters
- $needle
- The string to look for
- $haystack
- The string in which to look
- $offset
- Offset within $haystack
Returns
string
|
public static
boolean
|
#
FIXEDFORMAT( mixed $value, integer $decimals = 2, boolean $no_commas = FALSE )
FIXEDFORMAT
Parameters
- $value
- Value to check
- $decimals
- $no_commas
Returns
boolean
|
public static
string
|
#
LEFT( string $value = '', integer $chars = 1 )
LEFT
Parameters
- $value
- Value
- $chars
- Number of characters
Returns
string
|
public static
string
|
#
MID( string $value = '', integer $start = 1, integer $chars = null )
MID
Parameters
- $value
- Value
- $start
- Start character
- $chars
- Number of characters
Returns
string
|
public static
string
|
#
RIGHT( string $value = '', integer $chars = 1 )
RIGHT
Parameters
- $value
- Value
- $chars
- Number of characters
Returns
string
|
public static
string
|
#
STRINGLENGTH( string $value = '' )
STRINGLENGTH
Parameters
Returns
string
|
public static
string
|
#
LOWERCASE( string $mixedCaseString )
LOWERCASE
Converts a string value to upper case.
Parameters
Returns
string
|
public static
string
|
#
UPPERCASE( string $mixedCaseString )
UPPERCASE
Converts a string value to upper case.
Parameters
Returns
string
|
public static
string
|
#
PROPERCASE( string $mixedCaseString )
PROPERCASE
Converts a string value to upper case.
Parameters
Returns
string
|
public static
string
|
#
REPLACE( string $oldText, integer $start, integer $chars, string $newText )
REPLACE
Parameters
- $oldText
- String to modify
- $start
- Start character
- $chars
- Number of characters
- $newText
- String to replace in defined position
Returns
string
|
public static
string
|
#
SUBSTITUTE( string $text = '', string $fromText = '', string $toText = '', integer $instance = 0 )
SUBSTITUTE
Parameters
- $text
- Value
- $fromText
- From Value
- $toText
- To Value
- $instance
- Instance Number
Returns
string
|
public static
boolean
|
#
RETURNSTRING( mixed $testValue = '' )
RETURNSTRING
Parameters
- $testValue
- Value to check
Returns
boolean
|
public static
boolean
|
#
TEXTFORMAT( mixed $value, string $format )
TEXTFORMAT
Parameters
- $value
- Value to check
- $format
- Format mask to use
Returns
boolean
|