Newbie question: output shorthand
Posted: Thu Jan 11, 2007 1:22 pm
Good day.
Is there a simplified method of outputting information from a PHP variable, without resorting to <?php echo ?> or <?php print() ?>? I am basically looking for something akin to <%= %> from ASP.
I recently decided to learn PHP and MySQL. I am familiar with most of ASP's conventions (at least on a simplistic level), but although ASP and PHP have general similarities, some of the logic and format is quite different. I know of the obvious resources for finding functions and whathaveyou (php.net's reference manual), but I wasn't sure how to search for the question above.
My apologies if this is rather more basic than what you normally on the forum. Additionally, if you know of a good guide to outline basic differences between ASP and PHP I would be most gracious. My thanks for your time.
- Niveras
Is there a simplified method of outputting information from a PHP variable, without resorting to <?php echo ?> or <?php print() ?>? I am basically looking for something akin to <%= %> from ASP.
I recently decided to learn PHP and MySQL. I am familiar with most of ASP's conventions (at least on a simplistic level), but although ASP and PHP have general similarities, some of the logic and format is quite different. I know of the obvious resources for finding functions and whathaveyou (php.net's reference manual), but I wasn't sure how to search for the question above.
My apologies if this is rather more basic than what you normally on the forum. Additionally, if you know of a good guide to outline basic differences between ASP and PHP I would be most gracious. My thanks for your time.
- Niveras