String Functions

These functions let you escape, validate and manipulate text.

Calling String Functions

You can use syntax of the form:

functionName()

to call these functions in your PHP code.

addAmp()

Name in Zenario 8

ze\ring::addAmp()

Automatically adds an & onto the start of a request string if the string is not empty and there is not one there already.

decodeItemIdForOrganizer()

Name in Zenario 8

ze\ring::decodeIdForOrganizer()

This function can be used to give you the original value of an id encoded with the encodeItemIdForOrganizer() function.

engToBoolean()

Name in Zenario 8

ze\ring::engToBoolean()

Takes a string, and returns either a 1 or a 0 depending on whether the string looks affirmative or negative.

Available in both PHP and JavaScript.

hash64()

Returns a hash of the input, in a URL-safe base-64 format. This is intended to be added to URLs for CSS or JavaScript file, to create a "cache killer".

HTMLId()

Name in Zenario 8

ze\ring::HTMLId()

Encodes a string into something suitable for a HTML ID by replacing anything non-alphanumeric with an underscore.