본문으로 건너뛰기
0

이 레슨은 당분간 영어로 제공돼요.

Your own types

An array like ["name" => "sara"] cannot stop a typo such as $p["nmae"]. A class gives your data a fixed shape, types and rules, and PHP checks them for you.