【週刊ドットインストール】 256timesの新クラスを開講!レッスン制作の進捗
CSSの基礎をじっくり固めたい方に!『手を動かして学ぶ模写コーディング Level 1-4』を開講します
$posts[0] = new Post('hello'); $posts[1] = new Post('hello again'); $posts[2] = new SponsoredPost('hello hello', 'dotinstall'); function processPost(Post $post) { $post->show();
のところの Post 型をやる理由がわかりません。
この回答を見るにはプレミアムプランへの登録が必要です