File path: dist/twist/Core/Models/Tools.model.php
Namespace: Twist\Core\Models
slug
— Generate a URL-friendly slug of a string
Name | Description |
---|---|
$strRaw | n/a |
[$arrExistingSlugs = array()] | n/a |
[$intMaxLength = null] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strRaw = 'foo';
$arrExistingSlugs = array();
$intMaxLength = null;
//Call the function slug with the example vars
$resTools = new \Twist\Core\Models\Tools();
$resTools -> slug($strRaw, $arrExistingSlugs, $intMaxLength);