Saturday, June 30, 2018

DECLARATION STYLE TAGS OF PHP


Types of declaration style tags:
1.Universal style tag: Supports all functionalities of php.
               <?php
                  echo("universal style tag"):
               ?>
2.Short open tag: Supports limited functionalities of php.

                <?
                 echo("short open tag");
                ?>
3.ASP style tag: We can also include the php script within the ASP declaration syntax.
               <%
                  echo("asp style tag");
               %>
4.Script style tag: This is the oldest style tag used for all types of scripts.
                <script language="php">
                   echo("script style tag");
                </script>
Sometimes we don’t get the output of ASP style tag. If output of ASP style tag is not displayed on the browser screen,then follow these steps:
1.Open the php.ini.
2.Find asp_tags = off.
3.Replace off with on.
4.Save the new settings.

5.Now run the code of ASP style tag.We get the desired output.
So php.ini is very useful in chaning the desired configuration settings.