Skip to content

Working with Pimf_Util_Identifier

g.krsteski edited this page Jun 3, 2014 · 4 revisions


Identifier util for unified resource generation. For example, you can create a new cache identifier based on the given parameters at the constructor method. Integer and string but not array and objects are allowed.

Common usage

$identifier = new class Pimf\Util\Identifier(
 1, '23', 123, 'ZZ-TOP', 'Some_Class_name'

print $identifier; // --> '1_23_123_zz_top_some_class_name'

Usage with custom delimiter


print $identifier->generate(); // --> '1/23/123/zz/top/some/class/name'