I'm trying to create ids to diversified contents using md5 to encode but, I'm not sure about this method.
<?php
$prefix = 'stackoverflow';
$length = 11;
$id = md5( $prefix . uniqid(microtime()) );
$part1 = substr($id, 0,(floor($length / 2))); //First 5 chars
$id = strrev($id); //Reverse md5
$part2 = substr($id, 0,(ceil($length / 2))); //First 6 chars of the reversed md5
$final_id = $part2 . $part1; //Reverse final id
?>