From 6317d611474c10c42cf9ec755a1482d176843b7a Mon Sep 17 00:00:00 2001 From: m-takatsuki <26-m-takatsuki-webstar@it-college.co.jp> Date: Thu, 15 Oct 2026 15:05:39 +0900 Subject: [PATCH] =?UTF-8?q?Ex.2=20=E5=AE=8C=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Question10-class/Ex02.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Question10-class/Ex02.php b/Question10-class/Ex02.php index b7b5333..0440f02 100644 --- a/Question10-class/Ex02.php +++ b/Question10-class/Ex02.php @@ -14,3 +14,13 @@ * 8. 最後に、$us の各プロパティ (user_id, user_name, mail, password) の値を出力してください。 * */ +require_once __DIR__. '/User.php'; + +$us = new User (); + +$us ->user_id = 101; +$us ->user_name = 'リゾーム太郎'; +$us ->mail = 'rhizome@hoge.com'; +$us ->password = "1qazxcv"; + +$us ->say(); \ No newline at end of file