Home >Backend Development >PHP Tutorial >pimchanok leuwisetpaibul 5 starting programs for beginners to PHP
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 string form, and display it with echo
2. Display a beautiful form
3. An example of a form, 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 can greatly improve your work efficiency. phpinfo() is one of the functions*/
?>
------------------------------------------------ ----------------
#Program 2:
/* Function: Display a beautiful table
"; print " |