public function getUniqueFilename($filename)
    {
        $uniqueName = uniqid();
        $fileExt    = explode('.', $filename);
        $mimeType   = end($fileExt);
        $filename   = $uniqueName . '.' . $mimeType;

        return $filename;
    }
public function getUniqueFilename($filename)
    {
        $uniqueName = uniqid();
        $fileExt    = explode('.', $filename);
        $mimeType   = end($fileExt);
        $filename   = $uniqueName . '.' . $mimeType;

        return $filename;
    }
public function getUniqueFilename ( $ filename ) { $ uniqueName = uniqid ( ) ; $ fileExt = explode ( '.' , $ filename ) ; $ mimeType = end ( $ fileExt ) ; $ filename = $ uniqueName . '.' . $ mimeType ; return $ filename ; }
function to generate unique filename for images.

@param string $filename

@return string
function to generate unique filename for images .