Learning PHP: Storing Basic Information

Basic information is stored using variables and data types. In this continuing tutorial, the focus is on teaching you the basic structure of PHP and how it handles variables and data types.

provided by: 
Originally published at Internet.com


Now that you have a working PHP development environment, it's time to start learning some of the actual language.

In the next few articles, we will be taking a look at the fundamentals of the PHP language in preparation for creating your first script: a full-fledged form processor. This time, we will be focusing on the basic structure of PHP and taking a look at how it handles variables and data types.

Basic Syntax

Starting and Ending PHP Code Blocks
Take a look at the following simple PHP script:



Testing PHP





In this example, PHP is embedded directly into an HTML document. Because PHP and HTML can be mixed like this, every block of PHP code must be surrounded by Start and End elements. These elements allow PHP to see which sections of the page need to be parsed, and which can be ignored.

PHP recognizes four different versions of these sets:

1.

2.

3.
...

Read article at Internet.com site
Related Articles
Regional Articles
- Learning PHP: Storing Basic Information Alabama
- Learning PHP: Storing Basic Information Alaska
- Learning PHP: Storing Basic Information Arizona
- Learning PHP: Storing Basic Information Arkansas
- Learning PHP: Storing Basic Information California
- Learning PHP: Storing Basic Information Colorado
- Learning PHP: Storing Basic Information Connecticut
- Learning PHP: Storing Basic Information DC
- Learning PHP: Storing Basic Information Delaware
- Learning PHP: Storing Basic Information Florida
- Learning PHP: Storing Basic Information Georgia
- Learning PHP: Storing Basic Information Hawaii
- Learning PHP: Storing Basic Information Idaho
- Learning PHP: Storing Basic Information Illinois
- Learning PHP: Storing Basic Information Indiana
- Learning PHP: Storing Basic Information Iowa
- Learning PHP: Storing Basic Information Kansas
- Learning PHP: Storing Basic Information Kentucky
- Learning PHP: Storing Basic Information Louisiana
- Learning PHP: Storing Basic Information Maine
- Learning PHP: Storing Basic Information Maryland
- Learning PHP: Storing Basic Information Massachusetts
- Learning PHP: Storing Basic Information Michigan
- Learning PHP: Storing Basic Information Minnesota
- Learning PHP: Storing Basic Information Mississippi
- Learning PHP: Storing Basic Information Missouri
- Learning PHP: Storing Basic Information Montana
- Learning PHP: Storing Basic Information Nebraska
- Learning PHP: Storing Basic Information Nevada
- Learning PHP: Storing Basic Information New Hampshire
- Learning PHP: Storing Basic Information New Jersey
- Learning PHP: Storing Basic Information New Mexico
- Learning PHP: Storing Basic Information New York
- Learning PHP: Storing Basic Information North Carolina
- Learning PHP: Storing Basic Information North Dakota
- Learning PHP: Storing Basic Information Ohio
- Learning PHP: Storing Basic Information Oklahoma
- Learning PHP: Storing Basic Information Oregon
- Learning PHP: Storing Basic Information Pennsylvania
- Learning PHP: Storing Basic Information Rhode Island
- Learning PHP: Storing Basic Information South Carolina
- Learning PHP: Storing Basic Information South Dakota
- Learning PHP: Storing Basic Information Tennessee
- Learning PHP: Storing Basic Information Texas
- Learning PHP: Storing Basic Information Utah
- Learning PHP: Storing Basic Information Vermont
- Learning PHP: Storing Basic Information Virginia
- Learning PHP: Storing Basic Information Washington
- Learning PHP: Storing Basic Information West Virginia
- Learning PHP: Storing Basic Information Wisconsin
- Learning PHP: Storing Basic Information Wyoming
Related Articles

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML