Union types 簡單來說,就是在宣告變數類型時,可以使用複數個 <?php // 參數$something 的類型可以為string 或是array public function dumpSomething(string|array ...
確定! 回上一頁