Online
 
Friday, 09 January 2009
 
 
More article:
Related Content:

TUtorial PHP - Basic PHP Syntax
 
Article Index
TUtorial PHP - Basic PHP Syntax
Page 2

NOTE

Although <?php and ?> are generally used, the following are also valid code-block separators:

<? ... ?>

Shorthand version of <?php and ?>

<% ... %>

ASP style

<SCRIPT LANGUAGE="PHP">

...

 

</SCRIPT>

HTML editor compatible syntax


Note that some of these code block separators function only when the associated php.ini configuration directive is enabled. Unless there is a specific reason not to, using the default <?php and ?> tags is strongly recommended.


Although it's PHP, the preceding script does nothing that couldn't already be done with standard HTML. To do anything worthwhile, you'll need to learn how to use PHP variables.

In PHP, variables always start with the $ symbol followed by any combination of characters, provided that the first character following the $ symbol is a valid letter or underscore. Valid letters include uppercase and lowercase az as well as characters whose ASCII-value is between 127 and 255 (non-U.S. letters). In PHP, variables can be defined either by assigning them a value or by using the var statement.



Tags: Add more tags...,
This entry was posted on . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a comment. Tags: Simple PHP, Pear, Easy PHP, PHP Tutorial, PHP MySQL, XSLT, Sap Tutorial, CSS Tutorial, XSL FO Java, SQL Tutorial.
Users' Comments (0)

Comment an article
  Name
  E-mail
   Title
Available characters: 4000
 Notify me of follow-up comments
This image contains a scrambled text, it is using a combination of colors, font size, background, angle in order to disallow computer to automate reading. You will have to reproduce it to post on my homepage
Enter what you see:

No comment posted

Natural 57
Statistic


Last Post

 
Top! Top!