跳到主要内容
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.