/ LJCPHPCodeDoc / LJCCommonLib / LJC


Syntax

PHP
class LJC

Contains common PHP functions

Public Functions
String Functions
CreateJSON Creates JSON from the provided value.
EndsWithNewLine Indicates if the builder text ends with a newline.
GetDelimitedString Gets the string between the delimiters.
GetTokens Get string tokens.
NewLineTrim Removes the trailing newline from the text.
ParseJSON Parses JSON into an object.
Scrub Returns a scrubbed external value.
Split Splits a string on whitespace.
StrPos Gets the first index for the search value.
StrRPos Gets the last index for the search value.
File Name Functions
GetFileName Gets the FileName from the file spec.
GetFileSpecPath Gets the Path from the file spec.
Check Value Functions
HasElements Checks for array elements.
HasItems Checks for collection items.
HasValue Checks for text.
HasXML Checks an XML element for a value.
Arrays Functions
RemoveString Remove an element from a string array by value.
Conversion Functions
ToArray Copy collection items to an indexed array.
ToBool Returns a value as bool.
ToBoolInt Returns a text value as an int boolean.
XMLToString Gets a string value from the XML element.
Output Functions
OutputLogCompare Outputs the test compare text.
HasDiff Checks if two strings are different.
ShowFirstDiff Shows the first difference between two strings.
ShowWhiteSpace Returns a string that shows the whitespace.
25 Functions

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.