You are here: Re: random number « PHP Programming Language « IT news, forums, messages
Re: random number

Posted by phpuser32423 on 10/14/05 00:37

Your question is contradictory mate you couldnt make a random number
that began with specified non random value. You could however make a
string variable that was comprised of both a constant value of '1001.'
and an entirely random number using a random number generating
function. Like this
$string .= '1001';
$string .= 'your random number';

echo $string;

You would need to ask someone else about generating a random number in
PHP as i've never had to do it, i just stick a few incrementing numbers
together pulled from a database if i want to create a unique value like
for a transaction ID or something.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация