![]() |
Randomize code
Hi!
How could make a random coded string which has the markup like the one below: Code:
XXXX-XXX-XXX-XX-XXXX |
Quote:
PHP Code:
|
Something like this?
PHP Code:
|
Thanks!
Is it possible to also have it with numbers? :O :-D |
Quote:
PHP Code:
|
With numbers
PHP Code:
|
By the way, why is this in Absolute Beginners, I thought Tanax was more than a just a Beginner? :P
|
@Orc I think this is pretty basic stuff so it belongs in the Beginners section
|
Quote:
|
BY the way, heres another method
PHP Code:
|
Works like a charm! Thanks :-)
@Orc- Well.. erh.. I'm farily good. But since this is really basic stuff, it belongs in the beginners section ;P I mean, it's not really any "advanced" functions, it's just basic random and preg replaces.. :-P |
Quote:
|
Orc I think you don't get the thing he's trying here, he wants to have random strings not the same string every time you run the script.
|
Quote:
|
| All times are GMT. The time now is 11:05 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0