Deprecated language features are those that have been retained temporarily for backward compatibility, but which will eventually be removed from the language. In effect, deprecation announces a grace period to allow the smooth transition from the old features to the new ones. In that period, no use of the deprecated features should be added to the code, and all existing uses should be gradually removed.
The following functions were deprecated in PHP 5:
| Deprecated | Use Instead |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Passing locale category names as strings |
Use the LC_* family of constants |
The following functions were deprecated in PHP 7:
| Deprecated | Use Instead |
|---|---|
|
|
|
anonymous function |
|
|
|
|
|
|
|
|
Defining case-insensitive constants by calling |
|
|
|
|
|
|
Use the corresponding |
string search functions with integer needle ( |
use a string needle instead |
|
|
|
|
Defining an |
use the standard |