Joining Variables into One

Custom / CUSTOM
February 4, 2010 at 07:18:51
Specs: Windows XP, 8g
Hi, having a little trouble with this PHP script, I would like to join
multiple variables into one variable string as
shown below. I would like the following line to
save as $name instead of echo it. Any help
would be much appreciated. Thanks

echo $rand_letter, ".", $class_no, $x;


function planetstart($class_no)
$int = rand(0,26);
$a_z =
$rand_letter = $a_z[$int];

$x=rand(100, 999);
echo $rand_letter, ".", $class_no, $x;
echo $name;

See More: Joining Variables into One

Report •

February 4, 2010 at 07:32:38
Worked it out, thanks anyway.

$name=($rand_letter . "." . $class_no . $x);

Report •
Related Solutions

Ask Question