General
IT Notes → PHP @ December 22, 2020
- PHP could be called partially case sensitive since language statements and language functions not case sensitive
- Tags:
- Standard Tags — <?php ?>
- Short Tags —- <? ?> and
- Script Tags —- <script language=”php”></script>
- ASP Tags —- <% %>
- {} says it is a variable ${a}, {$a} Inside single quotes variables can’t be simply placed. Use “”.
- Comments:
-
//Single line comment. #Single line comment. /*Multi-line. comment */ /** * API Documentation Example. * * @param string $bar */ //Heredoc - It is similar to double quotes over multiple lines. <<<EOT ... text EOT; //Nowdoc - It is similar to single quotes over multiple lines. Only starting with PHP 5.3.0. <<<'EOT' ... text EOT;
Subscribe
Login
0 Comments