What the are features of PHP?

It has many features but i would like to mention few:

PHP has set of pre defined variables called superglobals which will be start by _. Some of the examples are, $_GET, $_POST, $_COOKIE, $_SESSION, $_SERVER and etc. So, any variable except superglobals, that are start with _ will cause error.

Predefined error reporting constants are available to generate a warning or error notice. For example, when E_STRICT is enabled, a warning about deprecated methods will be generated.

Here i found few more in detailed notes of php features:
9 Useful PHP Functions and Features You Need to Know - Tuts+ Code Tutorial
 
PHP code can be simply mixed with HTML code, or it can be used in combination with various templating engines and web frameworks. PHP code is usually processed by a PHP interpreter, which is usually implemented as a web server's native module or a Common Gateway Interface (CGI) executable. After the PHP code is interpreted and executed, the web server sends resulting output to its client, usually in form of a part of the generated web page; for example, PHP code can generate a web page's HTML code, an image, or some other data. PHP has also evolved to include a command-line interface (CLI) capability and can be used in standalone graphical applications.
 
Features of PHP are:
1. In PHP there is no need to specify data type for variable declaration.
2.PHP provides cross platform compatibility, unlike some other server side scripting language.
3. This language contains access monitoring capability to create logs as the summary of recent accesses.
 
Support for traits has been added.
Short array syntax has been added, e.g. $a = [1, 2, 3, 4]; or $a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4];.
Function array dereferencing has been added, e.g. foo()[0].
Closures now support $this.
<?= is now always available, regardless of the short_open_tag php.ini option.
Class member access on instantiation has been added, e.g. (new Foo)->bar().
Class::{expr}() syntax is now supported.
Binary number format has been added, e.g. 0b001001101.
Improved parse error messages and improved incompatible arguments warnings.
The session extension can now track the upload progress of files.
Built-in development web server in CLI mode.
 
You can easy code php
Unlimited level of categories.
Publishing tool for custom pages by you.
Unique Extra Fields that is also sortable.
Large user community.
Uses Template and language system that keeps your customize.
Regions Module is included
 
PHP is a server side scripting language.. It has some features
1. There is no need to specify the datatype for variable declaration.
2. It provides cross platform compatability.
3. In PHP the name of the variable can change dynamically..
 
In PHP there is no need to specify data type for variable declaration. Rather, it can be determined at the time of execution depends on the value of the variable. So that, PHP is called as loosely typed language.
PHP provides cross platform compatibility, unlike some other server side scripting language.
PHP has set of pre defined variables called superglobals which will be start by _. Some of the examples are, $_GET, $_POST, $_COOKIE, $_SESSION, $_SERVER and etc. So, any variable except superglobals, that are start with _ will cause error.
PHP programming structure includes variable variables; that is, the name of the variable can be change dynamically.
This language contains access monitoring capability to create logs as the summary of recent accesses.
And then, it includes several magic methods that begins with __ character which will be defined and called at appropriate instance. For example, __clone() will be called, when the clone keyword is used.
Predefined error reporting constants are available to generate a warning or error notice. For example, when E_STRICT is enabled, a warning about deprecated methods will be generated.
PHP supports extended regular expression that leads extensive pattern matching with remarkable speed.
And then, properties like, nowdocs and heredocs are used to delimit some block of context which should not be sent for parsing.
Since PHP is a single inheritance language, the parent class methods can be derived by only one directly inherited sub class. But, the implementation of traits concept, reduce the gap over this limitation and allow to reuse required method in several classes.
 
In PHP there is no need to specify data type for variable declaration. Rather, it can be determined at the time of execution depends on the value of the variable. So that, PHP is called as loosely typed language.
PHP provides cross platform compatibility, unlike some other server side scripting language.
PHP has set of pre defined variables called superglobals which will be start by _. Some of the examples are, $_GET, $_POST, $_COOKIE, $_SESSION, $_SERVER and etc. So, any variable except superglobals, that are start with _ will cause error.
PHP programming structure includes variable variables; that is, the name of the variable can be change dynamically.
This language contains access monitoring capability to create logs as the summary of recent accesses.
And then, it includes several magic methods that begins with __ character which will be defined and called at appropriate instance. For example, __clone() will be called, when the clone keyword is used.
Predefined error reporting constants are available to generate a warning or error notice. For example, when E_STRICT is enabled, a warning about deprecated methods will be generated.
PHP supports extended regular expression that leads extensive pattern matching with remarkable speed.
And then, properties like, nowdocs and heredocs are used to delimit some block of context which should not be sent for parsing.
Since PHP is a single inheritance language, the parent class methods can be derived by only one directly inherited sub class. But, the implementation of traits concept, reduce the gap over this limitation and allow to reuse required method in several classes.
 
Last edited:
In PHP there is no need to specify data type for variable declaration. Rather, it can be determined at the time of execution depends on the value of the variable. So that, PHP is called as loosely typed language.
 
Back
Top