0

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

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by innocent.boys
0

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.!! :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.