okay heres my code below:

$keys = rand(10000,99999);
$fkeys = rand(100,999);
$bkeys = rand(100,999);
$key = $fkeys,$keys,$bkeys;
echo $key

this line "$key = $fkeys,$keys,$bkeys;" is giving me errors. i would like the result to be something like $fkeys$keys$bkeys. Any idea how i would be able to do that?. i have tried $fkeys+$keys+$bkeys, but it is just adding up the numbers and displaying the result as one who number.

Any help would be appreciated.
Danny

okay heres my code below:

$keys = rand(10000,99999);
$fkeys = rand(100,999);
$bkeys = rand(100,999);
$key = $fkeys,$keys,$bkeys;
echo $key

this line "$key = $fkeys,$keys,$bkeys;" is giving me errors. i would like the result to be something like $fkeys$keys$bkeys. Any idea how i would be able to do that?. i have tried $fkeys+$keys+$bkeys, but it is just adding up the numbers and displaying the result as one who number.

Any help would be appreciated.
Danny

Try

$key = $fkeys.$keys.$bkeys;

"." is used to concatenation in php.!! :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.