SHARE
TWEET

Untitled

a guest Oct 21st, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3.   <head>
  4.   <meta http-equiv="content-type" content="text/html; charset=windows-1250">
  5.   <meta name="generator" content="PSPad editor, www.pspad.com">
  6.   <title></title>
  7.   </head>
  8.   <body>
  9.   <?php
  10.    echo "<h1> Pole proměnných v PHP </h1>";
  11.    $a = array ("Tížek","Zedníček","Slezáček","Pořízek","Špaček","Tichá");
  12.    $pocet=count($a);
  13.    echo "<p>Přítomní žáci:";
  14.    for ($i=0;$i<$pocet;$i++)
  15.    {
  16.    echo "$a[$i], ";
  17.    }
  18.    echo "</p> ";
  19.    //vylosování studenta ´náhodné číslo - index pole
  20.    $los = rand(0,$pocet-1);
  21.    echo "<hr><h2>Ktabuli půjde $a[$los]</h2>";
  22.    
  23. ?>
  24.  
  25.   </body>
  26. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top