I have the following php code:
$mem=10;
echo "Memory: $mem MB<br>";
Which prints out:
Memory: 10 MB
I would like it to print out:
Memory: 10MB
I can't do this:
echo "Memory: $memMB<br>";
Any ideas how I can do this?
I have the following php code:
$mem=10;
echo "Memory: $mem MB<br>";
Which prints out:
Memory: 10 MB
I would like it to print out:
Memory: 10MB
I can't do this:
echo "Memory: $memMB<br>";
Any ideas how I can do this?
Using concatenation is an easy way:
echo "Memory: ".$mem."MB<br>";