waString

Actions with text strings

Contents...

Methods

public static function escape ($str, $flags = null)

Returns result of PHP function htmlspecialchars().

Parameters

Example

waString::escape('>')

Result

'>'

public static function escapeAll ($str, $flags = null)

Returns result of PHP function htmlentities().

Parameters

Example

waString::escapeAll('<br>')

Result

'&lt;br&gt;'

public static function uuid()

Returns UUID (Universally Unique IDentifier).

Example

waString::uuid()

Result

'68f4aed3-9fb8-4017-b04c-620517fdd717'