The most recent write code has encountered an error like this:
Say authenticate this method is obsolete, how can I judge before I execute this method?
Thank you!
Reply to discussion (solution)
Deprecated is obsolete
But just say: in the near future, this method will be abolished. But it's still going to work.
If you don't want to swap alternatives, you can mask the error
Deprecated is obsolete
But just say: in the near future, this method will be abolished. But it's still going to work.
If you don't want to swap alternatives, you can mask the error
I would like to use the if (the function is obsolete) such a method to judge, do not know whether the function is not outdated such a function.
This is related to the version, showing deprecated, it is best to use the official offer of new methods. Because a later version might discard the previous wording.
You can use the version to judge.
For example:
if (php_version > XXX) {
....
}else{
....
}
This is related to the version, showing deprecated, it is best to use the official offer of new methods. Because a later version might discard the previous wording.
You can use the version to judge.
For example:
if (php_version > XXX) {
....
}else{
....
}
Thank you! Already used is_callable has been resolved.