Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

PHP Problem


ghost's Avatar
0 0

I am trying to get the whole string doubled into an variable

....

echo $number*2 . "\n";
$no = $number*2;
echo $no;
?>

Returns

3910391436 6

WTF

Any ideas?

Thanks for reading this


ghost's Avatar
0 0

i think your supposed to put a space between a varible and whatever your doing to it…

$number*2

should be

$number * 2

mabye not tho. what is the value of $number anyway?


ghost's Avatar
0 0

i think your supposed to put a space between a varible and whatever your doing to it…

$number*2

should be

$number * 2

mabye not tho. what is the value of $number anyway?


ghost's Avatar
0 0

erm well i need to know the $number value in the first place so i can try to figure out whats wrong, otherwise i just get 0 0


ghost's Avatar
0 0

Umm i think this php code youre trying to do is that for real 11. If you help me out wiht it i can help you out with what i know :D Pm me and ill pm you some more details


shade's Avatar
Member
0 0

what about markup$result=$number + $number

?