Assigning Values to Variables like in Perl
Posted: Mon May 31, 2004 2:28 pm
Hey there -
In Perl, you can assign values to a variable in a freeform sort of format by doing the following:
In this case, the $body variable would contain all the stuff on those three lines, including the actual value of $othervariable.
Can this be done in PHP?
Thanks,
Peter.
In Perl, you can assign values to a variable in a freeform sort of format by doing the following:
Code: Select all
($body = <<END);
whatever you want
blah blah blah
123 $othervariable
ENDCan this be done in PHP?
Thanks,
Peter.