note 129187 added to control-structures.for
| From: | Blackonion at main dot php dot net | Date: | Mon, 22 Jan 2024 18:02:14 +0000 |
| Subject: | note 129187 added to control-structures.for | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221141@lists.php.net to get a copy of this message | ||
<?php
$resul = 0;
$random = rand(1,50);
echo "<br>The random is $random</br>";
for ($q = 0; $q <= $aleatorio; $q = $q + 1) {
$resul = $q;
if ($q < $random) {
echo "$resul - ";
}
else {
echo "$resul";
}
}
?>
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.157.134 (proxied: 91.116.101.126)
----
Manual Page -- https://php.net/manual/en/control-structures.for.php
Edit -- https://main.php.net/note/edit/129187
Del: integrated -- https://main.php.net/note/delete/129187/integrated
Del: useless -- https://main.php.net/note/delete/129187/useless
Del: bad code -- https://main.php.net/note/delete/129187/bad+code
Del: spam -- https://main.php.net/note/delete/129187/spam
Del: non-english -- https://main.php.net/note/delete/129187/non-english
Del: in docs -- https://main.php.net/note/delete/129187/in+docs
Del: other reasons-- https://main.php.net/note/delete/129187
Reject -- https://main.php.net/note/reject/129187
Search -- https://main.php.net/manage/user-notes.php