FREE E LEARNING PLATFORM
INTRODUCTION WHY PHP FEATURES SESSIONS
 

Features of PHP







To witness the execution of PHP checkout version PHP 7+. You will experience breakneck speed. More than highlighting features like these, I wish to highlight some unique features of PHP.

Robust, secure, cross platform, blah blah blah, these are features that every language in the Earth has. Let's see something unique about PHP.

1. Loosely Typed Language - PHP supports variable usage without declaring its data type. It will be taken at the time of the execution based on the type of data it has on its value.

2. PHP Array - Arrays in PHP are special datatypes and very flexible in the way you can handle them.

3. variable variables - PHP allows changing the variable name dynamically by using variable variables.

4. Real-Time Access Monitoring - PHP provides access logging by creating the summary of recent accesses for the user.

5. Magic Method - PHP has built in methods starts with __ (double underscore). These methods can't be called directly. Rather, it will be called on the event basis. For example, __clone() will be called, when the clone keyword is used.

6. Error Reporting - It has some predefined error reporting constants to generate a warning or error notice. For example, when E_STRICT is enabled, a warning about deprecated methods will be generated.

7. Extended Regular Expression - PHP provides REGEX methods with extensive parsing and pattern matching mechanism with remarkable speed.

8. nowdocs and heredocs String - PHP provides the nowdocs and heredocs properties are used to delimit some block of context. nowdocs and heredocs are same except the context in the heredocs allow variable parsing.

9. Traits - PHP is a single inheritance language. The traits concept is used to cover inheritance limitation and support inheritance at multiple levels.


noidatut course




Leave Comment