RE: [PHP] Script invocation similar to ASP <%= %>
| From: | Hoover, Josh | Date: | Fri, 04 May 2001 19:14:41 +0000 |
| Subject: | RE: [PHP] Script invocation similar to ASP <%= %> | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-51466@lists.php.net to get a copy of this message | ||
I believe you want something like this:
<?
$PAGE_TITLE = "My Page";
?>
<html>
<head>
<title> <?=$PAGE_TITLE?> </title>
</head>
...
</html>
For the short cut syntax on echo checkout:
http://www.php.net/manual/en/function.echo.php
This assumes that you have
shortags on in your php.ini file.
Josh Hoover
KnowledgeStorm, Inc.
jhoover@knowledgestorm.com
Searching for a new IT solution for your company? Need to improve your
product marketing?
Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify
the process for you.
KnowledgeStorm - Your IT Search Starts Here
> Hi there,
>
> pedantic as it might seem, ..., but is there a way to implement the
> following ASP snippet in PHP
>
> <%
> Dim PAGE_TITLE
> PAGE_TITLE = "My Page"
> %>
> <html>
> <head>
> <title> <%=PAGE_TITLE%> </title>
> </head>
>
> ...
> </html>