¤| battousai |¤ 7 Light Poster

lately I have been experimenting a bit with print and came up with this:

$var1 = 'x'
print $var1;
$var2 = 'y';
print "when you calculate:" . $var1 "-" . $var2 . "=" . ($var1 - $var2);

where you can see a calculation while still in the function print. I wonder if you can also asign variables the same way:

print ($var='x');
print ($var2='y');
print "when you calculate:" . $var1 "-" . $var2 . "=" . ($var1 - $var2);
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.