Generate a random number in php

This will generate a random number between 0 and 4000 in php.


srand(time());
$form_id = (rand()%4000);

echo "$form_id";

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment