system/helpersstring_helper.php

Functions

trim_slashes()

trim_slashes(  $str) 

Parameters

$str

strip_slashes()

strip_slashes(  $str) 

Parameters

$str

strip_quotes()

strip_quotes(  $str) 

Parameters

$str

quotes_to_entities()

quotes_to_entities(  $str) 

Parameters

$str

reduce_double_slashes()

reduce_double_slashes(  $str) 

Parameters

$str

reduce_multiples()

reduce_multiples(  $str,   $character = ',',   $trim = FALSE) 

Parameters

$str
$character
$trim

random_string()

random_string(  $type = 'alnum',   $len = 8) 

Parameters

$type
$len

increment_string()

increment_string(string  $str, string  $separator = '_', string  $first = 1) : string

Add's _1 to a string or increment the ending number to allow _2, _3, etc

Parameters

string $str

required

string $separator

What should the duplicate number be appended with

string $first

Which number should be used for the first dupe increment

Returns

string

alternator()

alternator() 

repeater()

repeater(  $data,   $num = 1) 

Parameters

$data
$num