Skip to content

Function increment_string

echiong edited this page Oct 23, 2012 · 1 revision

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

Located at system/helpers/string_helper.php

Return value summary

Type: string

Description:

Parameters summary

string $str required $str

required

2. ` string $separator What should the duplicate number be appended with ` ` $separator = '_' `

What should the duplicate number be appended with

3. ` string $first Which number should be used for the first dupe increment ` ` $first = 1 `

Which number should be used for the first dupe increment

Packages

Classes

Exceptions

Functions

Clone this wiki locally