User Tools

Site Tools


php_first_lesson

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
php_first_lesson [2024/10/04 07:09] appledogphp_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:
 +<Code:PHP>
 +<?php
 +
 + $name = readLine("What is your name? ");
 + echo "Hello {$name}!\n";
 + echo "Your new name is Teacher {$name}.\n";
 +?>
 +</code>
 +
 +and doctor.php:
 <Code:PHP> <Code:PHP>
 <?php <?php
php_first_lesson.1728025766.txt.gz · Last modified: 2024/10/04 07:09 by appledog

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki