To mark a PHP function as deprecated and provide an alternative in the docstring, use the @deprecated tag. This makes it clear to developers that the function is deprecated and specifies the alternative.
Source code viewer
/** * @deprecated since 1.2.0 Use newFunction() instead. */ function oldFunction() { // Deprecated function logic } function newFunction() { // New function logic } Programming Language: PHP