Function %s() is deprecated%S¶
Description¶
PHP native functions get deprecated, before being removed. This message is here to help with refactoring the code to more modern syntax, and get ready for upcoming versions.
Example¶
<?php
// One of the deprecated functions
echo strftime(1);
?>
Literal Examples¶
Function strftime() is deprecated since 8.1, use IntlDateFormatter::format() instead
Solutions¶
Use the suggestion from the error message.