Can a PHP function expect a type?

后端 未结 0 910
抹茶落季
抹茶落季 2020-12-08 14:55

I\'m trying to do something like this:

function get_value($value)
{
    if (is_null($value)) {
        if ($value expects array) {
            return [\'hello         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题