【週刊ドットインストール】 256timesに新クラス登場、Figma入門は来週完結予定
グリッドレイアウトの基礎を固めたい方に!『手を動かして学ぶ模写コーディング Level 3-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 型をやる理由がわかりません。
この回答を見るにはプレミアムプランへの登録が必要です