TwistPHP Documentation

zipStrings

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

zipStringsCreate a 'zipped' string of characters (useful for sha1() + uniqid() to avoid similar-looking uniqid()'s)

Parameters

Name Type Description
$strString1stringn/a
$strString2stringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strString1 'foo';
$strString2 'foo';

//Call the function zipStrings with the example vars
$resTools = new \Twist\Core\Models\Tools();
$resTools -> zipStrings($strString1$strString2);