Create short IDs with PHP - Like Youtube or TinyURL


/ Published in: PHP
Save to your folder(s)

Example

Running:

alphaID(9007199254740989);

will return 'PpQXn7COf' and:

alphaID('PpQXn7COf', true);

will return '9007199254740989'

Easy right?

URL: http://kevin.vanzonneveld.net/techblog/article/create_short_ids_with_php_like_youtube_or_tinyurl/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.