在PHP中,stdClass是一個內置類,用于創建一個標準的空對象。它可以像普通對象一樣使用,但不能被繼承。stdClass通常用于在運行時動態創建對象,并且不需要定義類。
stdClass的作用包括: