classUser{interfaceUser{name:stringage:number}publicfunctioncreate(Userdata){}}如果在php中可以使用類似的語法去校驗參數(shù)類型嗎?
php可以像typescript那樣定義interface嗎?
回首憶惘然
2019-04-27 17:18:56