I have the following function:
function array_duplicates($array) { $duplicates = array(); $unique = array_unique($array); for ($i = 0; $i < count(
By convention, utility classes go under the Util namespace.
Util
If you use bundles, a class would go into the YourBundle\Util namespace. If you don't, it would go into the Acme\Util namespace — the src/Acme/Util folder.
YourBundle\Util
Acme\Util
src/Acme/Util