Hypertext Preprocessor/ PHP; Types, Develoment, Funtions

Hypertext Preprocessor/ PHP; Types, Develoment, Funtions

Hypertext Preprocessor/ PHP(or simply PHP) is a general-purpose programming language originally designed for web development. It was originally created by Rasmus Lerdorf in 1994;[6] the PHP reference implementation is now produced by The PHP Group.[7] PHP originally stood for Personal Home Page,[6] but it now stands for the recursive initialism PHP: Hypertext Preprocessor.[8]

PHP code may be executed with a command-line interface (CLI), embedded into HTML code, or used in combination with various web template systems, web content management systems, and web frameworks. PHP code is usually processed by a PHP interpreter implemented as a module in a web server or as a Common Gateway Interface (CGI) executable.

PHP Example

In this tutorial, you will get a lot of PHP examples to understand the topic well. You must save the PHP file with a .php extension. Let’s see a simple PHP example.

File: hello.php

  1. <!DOCTYPE>
  2. <html>
  3. <body>
  4. <?php
  5. echo “<h2>Hello by PHP</h2>“;
  6. ?>
  7. </body>
  8. </html>

Hypertext Preprocessor/ PHP

 

PHP Variable Types

The main way to store information in the middle of a PHP program is by using a variable.

Here are the most important things to know about variables in PHP.

  • All variables in PHP are denoted with a leading dollar sign ($).
  • The value of a variable is the value of its most recent assignment.
  • Variables are assigned with the = operator, with the variable on the left-hand side and the expression to be evaluated on the right.
  • Variables can but do not need, to be declared before assignment.
  • Variables in PHP do not have intrinsic types – a variable does not know in advance whether it will be used to store a number or a string of characters.
  • Variables used before they are assigned have default values.
  • PHP does a good job of automatically converting types from one to another when necessary.
  • PHP variables are Perl-like.

PHP has a total of eight data types which we use to construct our variables −

  • Integers − are whole numbers, without a decimal point, like 4195.
  • Doubles − are floating-point numbers, like 3.14159 or 49.1.
  • Booleans − have only two possible values either true or false.
  • NULL − is a special type that only has one value: NULL.
  • Strings − are sequences of characters, like ‘PHP supports string operations.’
  • Arrays − are named and indexed collections of other values.
  • Objects − are instances of programmer-defined classes, which can package up both other kinds of values and functions that are specific to the class.
  • Resources − are special variables that hold references to resources external to PHP (such as database connections).

Released Announcement of PHP

PHP 7.4.0beta1 released!

  • The PHP team is glad to announce the first beta release of PHP 7.4: PHP 7.4.0beta1. This continues the PHP 7.4 release cycle, the rough outline of which is specified in the PHP Wiki.
  • For source downloads of PHP 7.4.0beta1 please visit the download page.
  • Please carefully test this version and report any issues found in the bug reporting system.

Please DO NOT use this version in production, it is an early test version.

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
  • The next release would be Beta 2, planned for August 8th.
  • The signatures for the release can be found in the manifest or on the QA site.

PHP 7.4.0 alpha 3 Released

  • The PHP team is glad to announce the release of the third PHP 7.4.0 version, PHP 7.4.0 Alpha 3. This continues the PHP 7.4 release cycle, the rough outline of which is specified in the PHP Wiki.
  • For source downloads of PHP 7.4.0 Alpha 3 please visit the download page.
  • Please carefully test this version and report any issues found in the bug reporting system.

Please DO NOT use this version in production, it is an early test version.

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
  • The next release would be Beta 1, planned for July 25th.
  • The signatures for the release can be found in the manifest or on the QA site.
  • Thank you for helping us make PHP better.

PHP 7.2.20 Released

  • The PHP development team announces the immediate availability of PHP 7.2.20. This is a bugfix release.
  • All PHP 7.2 users are encouraged to upgrade to this version.
  • For source downloads of PHP 7.2.20 please visit our downloads page, Windows source and binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog.

PHP 7.3.7 Release Announcement

  • The PHP development team announces the immediate availability of PHP 7.3.7. This is a bug fix release.
  • All PHP 7.3 users are encouraged to upgrade to this version.
  • For source downloads of PHP 7.3.7 please visit our downloads page, Windows source and binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog.

PHP 7.4.0 alpha 2 Released

  • The PHP team is glad to announce the release of the second PHP 7.4.0 version, PHP 7.4.0 Alpha 2. This continues the PHP 7.4 release cycle, the rough outline of which is specified in the PHP Wiki.
  • For source downloads of PHP 7.4.0 Alpha 2 please visit the download page.
  • Please carefully test this version and report any issues found in the bug reporting system.

Please DO NOT use this version in production, it is an early test version.

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
  • The next release would be Alpha 3, planned for July 11th.
  • The signatures for the release can be found in the manifest or on the QA site.
  • Thank you for helping us make PHP better.

PHP 7.4.0 alpha 1 Released

  • The PHP team is glad to announce the release of the first PHP 7.4.0 version, PHP 7.4.0 Alpha 1. This starts the PHP 7.4 release cycle, the rough outline of which is specified in the PHP Wiki.
  • For source downloads of PHP 7.4.0 Alpha 1 please visit the download page.
  • Please carefully test this version and report any issues found in the bug reporting system.

Please DO NOT use this version in production, it is an early test version.

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
  • The next release would be Alpha 2, planned for June 27.
  • The signatures for the release can be found in the manifest or on the QA site.
  • Thank you for helping us make PHP better.

PHP 7.1.30 Released

  • The PHP development team announces the immediate availability of PHP 7.1.30. This is a security release.
  • All PHP 7.1 users are encouraged to upgrade to this version.
  • For source downloads of PHP 7.1.30 please visit our downloads page, Windows source and binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog.

PHP 7.2.19 Release Announcement

  • The PHP development team announces the immediate availability of PHP 7.2.19. This is a security release which also contains several minor bug fixes.
  • All PHP 7.2 users are encouraged to upgrade to this version.
  • For source downloads of PHP 7.2.19 please visit our downloads page, Windows source and binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog.
You Might Also Like   Encryption; Types, Functions, Process, Uses

PHP 7.3.6 Release Announcement

  • The PHP development team announces the immediate availability of PHP 7.3.6. This is a security release which also contains several bug fixes.
  • All PHP 7.3 users are encouraged to upgrade to this version.
  • For source downloads of PHP 7.3.6 please visit our downloads page, Windows source and binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog.

PHP 7.1.29 Released

  • The PHP development team announces the immediate availability of PHP 7.1.29. This is a security release.
  • All PHP 7.1 users are encouraged to upgrade to this version.
  • For source downloads of PHP 7.1.29 please visit our downloads page, Windows source and binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog.

PHP 7.3.0RC6 Released

  • The PHP team is glad to announce the presumably last PHP 7.3.0 pre-release, PHP 7.3.0RC6. The rough outline of the PHP 7.3 release cycle is specified in the PHP Wiki.
  • For source downloads of PHP 7.3.0RC6 please visit the download page. Windows sources and binaries can be found on windows.php.net/qa/.
  • Please carefully test this version and report any issues found in the bug reporting system.

THIS IS A DEVELOPMENT PREVIEW – DO NOT USE IT IN PRODUCTION!

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. Internal changes are listed in the UPGRADING.INTERNALS file. These files can also be found in the release archive.
  • The next release would be 7.3.0 (GA), planned for December 6th.
  • The signatures for the release can be found in the manifest or on the QA site.
  • Thank you for helping us make PHP better.

PHP 7.3.0RC5 Released

  • The PHP team is glad to announce the next PHP 7.3.0 pre-release, PHP 7.3.0RC5. The rough outline of the PHP 7.3 release cycle is specified in the PHP Wiki.
  • For source downloads of PHP 7.3.0RC5 please visit the download page. Windows sources and binaries can be found on windows.php.net/qa/.
  • Please carefully test this version and report any issues found in the bug reporting system.

THIS IS A DEVELOPMENT PREVIEW – DO NOT USE IT IN PRODUCTION!

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. Internal changes are listed in the UPGRADING.INTERNALS file. These files can also be found in the release archive.
  • The next release would be RC6, planned for November 22nd.
  • The signatures for the release can be found in the manifest or on the QA site.
  • Thank you for helping us make PHP better.

PHP 7.3.0RC4 Released

  • The PHP team is glad to announce the next PHP 7.3.0 pre-release, PHP 7.3.0RC4. The rough outline of the PHP 7.3 release cycle is specified in the PHP Wiki.
  • For source downloads of PHP 7.3.0RC4 please visit the download page. Windows sources and binaries can be found on windows.php.net/qa/.
  • Please carefully test this version and report any issues found in the bug reporting system.

THIS IS A DEVELOPMENT PREVIEW – DO NOT USE IT IN PRODUCTION!

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. Internal changes are listed in the UPGRADING.INTERNALS file. These files can also be found in the release archive.
  • The next release would be RC5, planned for November 8th.
  • The signatures for the release can be found in the manifest or on the QA site.
  • Thank you for helping us make PHP better.

PHP 7.3.0RC3 Released

  • The PHP team is glad to announce the next PHP 7.3.0 pre-release, PHP 7.3.0RC3. The rough outline of the PHP 7.3 release cycle is specified in the PHP Wiki.
  • For source downloads of PHP 7.3.0RC3 please visit the download page. Windows sources and binaries can be found on windows.php.net/qa/.
  • Please carefully test this version and report any issues found in the bug reporting system.

THIS IS A DEVELOPMENT PREVIEW – DO NOT USE IT IN PRODUCTION!

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. Internal changes are listed in the UPGRADING.INTERNALS file. These files can also be found in the release archive.
  • The next release would be RC4, planned for October 25th.
  • The signatures for the release can be found in the manifest or on the QA site.
  • Thank you for helping us make PHP better.

PHP 7.3.0RC2 Released

  • The PHP team is glad to announce the next PHP 7.3.0 pre-release, PHP 7.3.0RC2. The rough outline of the PHP 7.3 release cycle is specified in the PHP Wiki.
  • For source downloads of PHP 7.3.0RC2 please visit the download page. Windows sources and binaries can be found on windows.php.net/qa/.
  • Please carefully test this version and report any issues found in the bug reporting system.

THIS IS A DEVELOPMENT PREVIEW – DO NOT USE IT IN PRODUCTION!

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. Internal changes are listed in the UPGRADING.INTERNALS file. These files can also be found in the release archive.
  • The next release would be RC3, planned for October 11th.
  • The signatures for the release can be found in the manifest or on the QA site.

PHP 7.3.0RC1 Released

  • The PHP team is glad to announce the release of the next PHP 7.3.0 pre-release, PHP 7.3.0RC1. The rough outline of the PHP 7.3 release cycle is specified in the PHP Wiki.
  • For source downloads of PHP 7.3.0RC1 please visit the download page. Windows sources and binaries can be found on windows.php.net/qa/.
  • Please carefully test this version and report any issues found in the bug reporting system.

THIS IS A DEVELOPMENT PREVIEW – DO NOT USE IT IN PRODUCTION!

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. Internal changes are listed in the UPGRADING.INTERNALS file. These files can also be found in the release archive.
  • The next release would be RC2, planned for September 27th.
  • The signatures for the release can be found in the manifest or on the QA site.

PHP 7.3.0.beta3 Released

  • The PHP team is glad to announce the release of the seventh PHP 7.3.0 version, PHP 7.3.0beta3. The rough outline of the PHP 7.3 release cycle is specified in the PHP Wiki.
  • For source downloads of PHP 7.3.0beta3 please visit the download page. Windows sources and binaries can be found on windows.php.net/qa/.
  • Please carefully test this version and report any issues found in the bug reporting system.

THIS IS A DEVELOPMENT PREVIEW – DO NOT USE IT IN PRODUCTION!

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. Internal changes are listed in the UPGRADING.INTERNALS file. These files can also be found in the release archive.
  • The next release would be RC1, planned for September 13th.
  • The signatures for the release can be found in the manifest or on the QA site.
You Might Also Like   How can I speed up my WordPress site without plugin?

PHP 7.3.0.beta2 Released

  • The PHP team is glad to announce the release of the sixth PHP 7.3.0 version, PHP 7.3.0beta2. The rough outline of the PHP 7.3 release cycle is specified in the PHP Wiki.
  • For source downloads of PHP 7.3.0beta2 please visit the download page. Windows sources and binaries can be found on windows.php.net/qa/.
  • Please carefully test this version and report any issues found in the bug reporting system.

THIS IS A DEVELOPMENT PREVIEW – DO NOT USE IT IN PRODUCTION!

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. Internal changes are listed in the UPGRADING.INTERNALS file. These files can also be found in the release archive.
  • The next release would be Beta 3, planned for August 30th.
  • The signatures for the release can be found in the manifest or on the QA site.

PHP 7.3.0.beta1 Released

  • The PHP team is glad to announce the release of the fifth PHP 7.3.0 version, PHP 7.3.0beta1. The rough outline of the PHP 7.3 release cycle is specified in the PHP Wiki.
  • For source downloads of PHP 7.3.0beta1 please visit the download page. Windows sources and binaries can be found on windows.php.net/qa/.
  • Please carefully test this version and report any issues found in the bug reporting system.

THIS IS A DEVELOPMENT PREVIEW – DO NOT USE IT IN PRODUCTION!

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
  • The next release would be Beta 2, planned for August 16th.
  • The signatures for the release can be found in the manifest or on the QA site.

PHP 7.3.0alpha4 Released

  • The PHP team is glad to announce the release of the fourth PHP 7.3.0 version, PHP 7.3.0alpha4. The rough outline of the PHP 7.3 release cycle is specified in the PHP Wiki.
  • For source downloads of PHP 7.3.0alpha4 please visit the download page. Windows sources and binaries can be found on windows.php.net/qa/.
  • Please carefully test this version and report any issues found in the bug reporting system.

THIS IS A DEVELOPMENT PREVIEW – DO NOT USE IT IN PRODUCTION!

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
  • The next release would be Beta 1, planned for August 2nd.
  • The signatures for the release can be found in the manifest or on the QA site.

PHP 7.3.0 alpha 3 Released

  • The PHP team is glad to announce the release of the third PHP 7.3.0 version, PHP 7.3.0 Alpha 3. The rough outline of the PHP 7.3 release cycle is specified in the PHP Wiki.
  • For source downloads of PHP 7.3.0 Alpha 3 please visit the download page. Windows sources and binaries can be found on windows.php.net/qa/.
  • Please carefully test this version and report any issues found in the bug reporting system.

THIS IS A DEVELOPMENT PREVIEW – DO NOT USE IT IN PRODUCTION!

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
  • The next release would be Beta 1, planned for July 19th.
  • The signatures for the release can be found in the manifest or on the QA site.

PHP 7.3.0 alpha 2 Released

  • The PHP team is glad to announce the release of the second PHP 7.3.0 version, PHP 7.3.0 Alpha 2. The rough outline of the PHP 7.3 release cycle is specified in the PHP Wiki.
  • For source downloads of PHP 7.3.0 Alpha 2 please visit the download page. Windows sources and binaries can be found on windows.php.net/qa/.
  • Please carefully test this version and report any issues found in the bug reporting system.

THIS IS A DEVELOPMENT PREVIEW – DO NOT USE IT IN PRODUCTION!

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
  • The next release would be Alpha 3, planned for July 5
  • The signatures for the release can be found in the manifest or on the QA site.

PHP 7.3.0 alpha 1 Released

  • The PHP team is glad to announce the release of the first PHP 7.3.0 version, PHP 7.3.0 Alpha 1. This starts the PHP 7.3 release cycle, the rough outline of which is specified in the PHP Wiki.
  • For source downloads of PHP 7.3.0 Alpha 1 please visit the download page.
  • Please carefully test this version and report any issues found in the bug reporting system.

Please DO NOT use this version in production, it is an early test version.

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
  • The next release would be Alpha 2, planned for June 21.
  • The signatures for the release can be found in the manifest or on the QA site.

PHP 7.2.2 Released

  • The PHP development team announces the immediate availability of PHP 7.2.2. This is a bugfix release, with several bug fixes included.
  • All PHP 7.2 users are encouraged to upgrade to this version.
  • For source downloads of PHP 7.2.2 please visit our downloads page, Windows source and binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog.

PHP 7.2.0 Release Candidate 4 Released

  • The PHP development team announces the immediate availability of PHP 7.2.0 RC4. This release is the fourth Release Candidate for 7.2.0. All users of PHP are encouraged to test this version carefully, and report any bugs and incompatibilities in the bug tracking system.

THIS IS A DEVELOPMENT PREVIEW – DO NOT USE IT IN PRODUCTION!

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
  • For source downloads of PHP 7.2.0 Release Candidate 4 please visit the download page, Windows sources and binaries can be found atwindows.php.net/qa/.
  • The next Release Candidate will be announced on the 26th of October. You can also read the full list of planned releases on our wiki.

PHP 7.2.0 Release Candidate 3 Released

  • The PHP development team announces the immediate availability of PHP 7.2.0 RC3. This release is the third Release Candidate for 7.2.0. All users of PHP are encouraged to test this version carefully, and report any bugs and incompatibilities in the bug tracking system.
You Might Also Like   Important Shortcut Keys for Computer

THIS IS A DEVELOPMENT PREVIEW – DO NOT USE IT IN PRODUCTION!

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
  • For source downloads of PHP 7.2.0 Release Candidate 3 please visit the download page, Windows sources and binaries can be found atwindows.php.net/qa/.
  • The next Release Candidate will be announced on the 12th of October. You can also read the full list of planned releases on our wiki.

PHP 7.2.0 Release Candidate 1 Released

  • The PHP development team announces the immediate availability of PHP 7.2.0 Release Candidate 1. This release is the first Release Candidate for 7.2.0. All users of PHP are encouraged to test this version carefully, and report any bugs and incompatibilities in the bug tracking system.

THIS IS A DEVELOPMENT PREVIEW – DO NOT USE IT IN PRODUCTION!

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
  • For source downloads of PHP 7.2.0 Release Candidate 1 please visit the download page, Windows sources and binaries can be found atwindows.php.net/qa/.
  • The second Release Candidate will be released on the 14th of September. You can also read the full list of planned releases on our wiki.

PHP 7.2.0 Beta 3 Released

  • The PHP development team announces the immediate availability of PHP 7.2.0 Beta 3. This release is the third and final beta for 7.2.0. All users of PHP are encouraged to test this version carefully, and report any bugs and incompatibilities in the bug tracking system.

THIS IS A DEVELOPMENT PREVIEW – DO NOT USE IT IN PRODUCTION!

  • For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
  • For source downloads of PHP 7.2.0 Beta 3 please visit the download page, Windows sources and binaries can be found atwindows.php.net/qa/.
  • The first Release Candidate will be released on the 31th of August. You can also read the full list of planned releases on our wiki.

PHP 7.2.0 Alpha 3 Released

  • The PHP development team announces the immediate availability of PHP 7.2.0 Alpha 3. This release contains fixes and improvements relative to Alpha 2. All users of PHP are encouraged to test this version carefully, and report any bugs and incompatibilities in the bug tracking system.

THIS IS A DEVELOPMENT PREVIEW – DO NOT USE IT IN PRODUCTION!

  • For information on new features and other changes, you can read the NEWS file or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.
  • For source downloads of PHP 7.2.0 Alpha 3 please visit the download page, Windows sources and binaries can be found on windows.php.net/qa/.

The following is a basic example of object-oriented programming in PHP:

 1 <?php
 2 abstract class User {
 3 	public string $name;
 4 
 5 	public function __construct(string $name) {
 6 		$this->name = $name;
 7 	}
 8 
 9 	public function greet():string {
10 		return "Hello, my name is " . $this->name;
11 	}
12 
13 	abstract public function job():string;
14 }
15 
16 class Student extends User {
17 	public string $course;
18 
19 	public function __construct(string $name, string $course) {
20 		$this->course = $course;
21 		parent::__construct($name);
22 	}
23 
24 	public function job():string {
25 		return "I learn " . $this->course;
26 	}
27 }
28 
29 class Teacher extends User {
30 	public array $teachingCourses;
31 
32 	public function __construct(string $name, string...$teachingCourses) {
33 		$this->teachingCourses = $teachingCourses;
34 		parent::__construct($name);
35 	}
36 
37 	public function job():string {
38 		return "I teach " . implode(", ", $this->teachingCourses);
39 	}
40 }
41 
42 $students = [
43 	new Student("Alice", "Computer Science"),
44 	new Student("Bob", "Computer Science"),
45 	new Student("Charlie", "Business Studies"),
46 ];
47 $teachers = [
48 	new Teacher("Dan", "Computer Science", "Information Security"),
49 	new Teacher("Erin", "Computer Science", "3D Graphics Programming"),
50 	new Teacher("Frankie", "Online Marketing", "Business Studies", "E-commerce"),
51 ];
52 
53 echo "Students: n";
54 foreach($students as $student) {
55 	echo $student->greet() . ", " . $student->job() . "n";
56 }
57 
58 echo "Teachers: n";
59 foreach($teachers as $teacher) {
60 	echo $teacher->greet() . ", " . $teacher->job() . "n";
61 }
62 
63 // Output of program:
64 // Students:
65 // Hello, my name is Alice, I learn Computer Science
66 // Hello, my name is Bob, I learn Computer Science
67 // Hello, my name is Charlie, I learn Business Studies
68 // Teachers:
69 // Hello, my name is Dan, I teach Computer Science, Information Security
70 // Hello, my name is Erin, I teach Computer Science, 3D Graphics Programming
71 // Hello, my name is Frankie, I teach Online Marketing, Business Studies, E-commerce

Functions of PHP

  • PHP defines a large array of functions in the core language and many are also available in various extensions; these functions are well documented in the online PHP documentation.[rx]However, the built-in library has a wide variety of naming conventions and associated inconsistencies, as described under history above.
  • PHP is a general-purpose scripting language that is especially suited to server-side web development, in which case PHP generally runs on a web server. Any PHP code in a requested file is executed by the PHP runtime, usually to create dynamic web page content or dynamic images used on websites or elsewhere.[rx] It can also be used for command-line scripting and client-side graphical user interface (GUI) applications. PHP can be deployed on most web servers, many operating systems and platforms, and can be used with many relational database management systems (RDBMS). Most web hosting providers support PHP for use by their clients. It is available free of charge, and the PHP Group provides the complete source code for users to build, customize and extend for their own use.[rx]

Hypertext Preprocessor/ PHP

Dynamic web page: example of server-side scripting (PHP and MySQL).

  • PHP acts primarily as a filter,taking input from a file or stream containing text and/or PHP instructions and outputting another stream of data. Most commonly the output will be HTML, although it could be JSONXML or binary data such as image or audio formats. Since PHP 4, the PHP parser compiles input to produce bytecode for processing by the Zend Engine, giving improved performance over its interpreter predecessor.[rx]

References

Hypertext Preprocessor/ PHP

Loading

If the article is helpful, please Click to Star Icon and Rate This Post!
[Total: 0 Average: 0]

About the author

Rx Harun administrator

Translate »