Get to know the PHP Programming Language

What's the PHP programming language?

Hypertext Preprocessor which is shortened to PHP is an open source scripting language that's extensively used to produce and develop a website.

PHP programming language was created by Rasmus Lerdorf in 1995. At first PHP stands for Personal Home Page Tools. Also changed to FI ( Forms Practitioner). Where since interpretation3.0, the name of this language was changed to Hypertext Preprocessor.

Inside the PHP train can contain textbook, HTML, CSS, JavaScript, and the PHP law itself is stored with the. php train extension, also to run PHP it's executed on the garçon, and the results are displayed in the cybersurfer as plain HTML.

The use of the PHP language is used to induce dynamic web runner content, record data entered via forms, add, cancel, change data in the database, control stoner access, and so on.

Why use the PHP programming language?

The advantage of using the PHP language is that it can run on colorful platforms similar as Windows, Linux, Unix, and Mac OS. PHP language is also compatible with nearly all waiters used moment similar as Apache, IIS, etc.

Besides being suitable to run on colorful platforms and waiters, it also supports colorful databases, is easy to learn, and runs efficiently on the garçon side.

PHP programming language support factors?

The factors demanded to make a website using the PHP programming language are web waiters similar as Apache and databases similar as MySQL, web waiters and databases that can be used on a original computer by installing the XAMPP operation which is formerly packaged with the garçon and database.

Every PHP train that's created must be stored in the XAMPP brochure, precisely in the htdoc brochure, it should be noted that PHP lines can not be run without a garçon running them.

What are the introductory commands of the PHP programming language?

PHP scripts can be placed anywhere in the document. Every PHP statement ends with a semicolon. Then's an illustration of a simple PHP train, with a PHP script that uses the “ echo” function to affair the textbook “ Hello World!” on the web runner.

The echo command in PHP is used to display a textbook into a web runner. In addition, it can also be used to display markers which are also restated as ordinary HTML markers.

Below, an illustration of writing a script from an explanation of case sensitive.

1. Writing an echo function that isn't Case Sensitive

2. Writing variable names that read Case Sensitive


Use of Commentary in PHP

Commentary in PHP law are lines that aren't executed as part of the program. One of its pretensions is to be read by the coder himself. The use of commentary can be used by others to understand the law that was written, and remind them of what was written.

Utmost programmers have restarted their jobs a time or two latterly and have to rediscover what was written. With commentary can remind about what was written.

Below are some exemplifications of the form of writing commentary for one line and further than one line commentary.

Post a Comment

Previous Post Next Post