"I am afraid that that code is not helpful even for older versions of PHP. It uses count() with a second parameter. This parameter was introduced in PHP 4.2.0. array_unique(), on the other hand, has been around since PHP 4.0.1."
Interesting, I didn't know that. I thought the link was an alternative before the array_unique version came; wonder why it still hits high on Goggle...
I was wondering one thing about your last post laserlight:
"Unless you are doing it for efficiency, do not do that. "
Are you saying the the PHP built in functions are not optimal? i.e. one cold do a better home brew alternative?