php_first_lesson
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| php_first_lesson [2024/10/04 07:09] – appledog | php_first_lesson [2024/10/04 07:10] (current) – appledog | ||
|---|---|---|---|
| Line 96: | Line 96: | ||
| == 2. input with readLine() | == 2. input with readLine() | ||
| + | Teacher and Doctor. Here is teacher.php: | ||
| + | < | ||
| + | <?php | ||
| + | |||
| + | $name = readLine(" | ||
| + | echo "Hello {$name}!\n"; | ||
| + | echo "Your new name is Teacher {$name}.\n"; | ||
| + | ?> | ||
| + | </ | ||
| + | |||
| + | and doctor.php: | ||
| < | < | ||
| <?php | <?php | ||
php_first_lesson.1728025766.txt.gz · Last modified: 2024/10/04 07:09 by appledog
