TwistPHP Documentation

randomString

File path: dist/twist/Core/Models/Tools.model.php
Namespace: Twist\Core\Models
Extends:

randomStringGenerate a random string, default length is set in the framework settings

Parameters

Name Type Description
[$intStringLength = null]integern/a
[$mxdCharset = null]mixedn/a
[$blIgnoreSimilarChars = true]booleann/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$intStringLength null;
$mxdCharset null;
$blIgnoreSimilarChars true;

//Call the function randomString with the example vars
$resTools = new \Twist\Core\Models\Tools();
$resTools -> randomString($intStringLength$mxdCharset$blIgnoreSimilarChars);