在参数的数据类型是由函数原型定义的情况中,参数应该根据标准规则转换成这种类型。
In the case where the data type of the parameter is defined by a function prototype, the parameter is converted to that type according the standard rules.
该函数可以是标准的PHP函数,在WordPress核心中定义的函数或者你自己在插件文件中定义的函数。
This can be a standard PHP function, a function present in the WordPress core, or a function defined by you in the plugin file.
到目前为止,要想使用定制的比较函数,标准的做法是定义自己的函数对象,然后适当地定义操作符。
So far, to use custom comparison functions, the standard practice has been to define your own function object and then define the operator appropriately.
应用推荐