PHP nullable type declaration

后端 未结 0 1450
情话喂你
情话喂你 2021-01-19 08:39

Is there any difference between this function in PHP 7.4?

public function foo(string $argumentThatCanBeNull = null) {}

public function bar(?string $argumentT         


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