The basic syntax format of PHP is similar to that of C. Friends who have never learned C will be basically familiar with the format if they spend a few minutes looking at how other people's source code is written.
-------------------------------------------------- -----
Let’s get to the point
Prepared 5 programs:
1. Use a basic function, the result is in the form of a string, and display it with echo
2. Display a beautiful Form
3. A form example, submit and display the submission results
4. Database manipulation example (voting program)
5. Dynamically create graphics and save examples
-------- -----------------------------------------------
#Program 1 :
/* Function: Display the configuration environment and various parameter variables of PHP and APACHE*/
echo phpinfo();/* PHP has a rich function library and a large number of convenient functions Greatly improve your work efficiency. phpinfo() is one of the functions*/
?>
-------------------------------- --------------------
#Program 2:
/* Function: Display a beautiful table
< ;HEAD>
"; print " |