note 129200 added to control-structures.while

From: Date: Sat, 27 Jan 2024 16:26:25 +0000
Subject: note 129200 added to control-structures.while
Groups: php.notes 
Request: Send a blank email to php-notes+get-221154@lists.php.net to get a copy of this message
Example of while with tables <?php $n = 9; echo ("<p>A táboa de multiplicar do $n:</p>"); echo ("</p>Cunha estrutura de control </p>"); echo ('<table border="1"><th>n1</th><th>n2</th><th>Resultado</th>'); for ($i=10; $i>=0; $i--) echo ("<tr><td> $n </td> <td> $i </td> <td>". $n*$i . "</td></tr>"); echo ("</table>"); echo ("<p>A táboa de multiplicar do $n:</p>"); echo ("</p>Con outra estrutura de control </p>"); echo ('<table border="1"><th>n1</th><th>n2</th><th>Resultado</th>'); $i = 0; while ($i <= 10) { echo ("<tr><td> $n </td> <td> $i </td> <td>". $n*$i . "</td></tr>"); $i++; } echo ("</table>"); ?> ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.157.134 (proxied: 139.47.59.124) ---- Manual Page -- https://php.net/manual/en/control-structures.while.php Edit -- https://main.php.net/note/edit/129200 Del: integrated -- https://main.php.net/note/delete/129200/integrated Del: useless -- https://main.php.net/note/delete/129200/useless Del: bad code -- https://main.php.net/note/delete/129200/bad+code Del: spam -- https://main.php.net/note/delete/129200/spam Del: non-english -- https://main.php.net/note/delete/129200/non-english Del: in docs -- https://main.php.net/note/delete/129200/in+docs Del: other reasons-- https://main.php.net/note/delete/129200 Reject -- https://main.php.net/note/reject/129200 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221154) next »