daily pastebin goal
44%
SHARE
TWEET

zivota

a guest Dec 13th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. // ********** 1.Zadatak ************
  4.  
  5. $ocene = array(2, 5, 4, 3);
  6.     var_dump($ocene);
  7.  
  8.     echo "<br><br>";
  9.  
  10.  
  11. // ********** 2.Zadatak ************
  12.  
  13.  
  14. $midValue = (array_sum($ocene) / count($ocene);
  15.     echo 'Prosecna ocena je:' . ' ' . $midValue . '.';
  16.  
  17.  
  18.     echo "<br><br>";
  19.  
  20.  
  21.  
  22. // ********** 3.Zadatak ************
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30. // ********** 4.Zadatak ************
  31.  
  32.  
  33. $predmeti = array(
  34.     'cphp' => array(1, 2, 3);
  35.     'html' => array(4, 5, 6);
  36.     'aphp' => array(7, 8, 9);
  37. )
  38.  
  39.  
  40.  
  41. // ********** 5.Zadatak ************
  42.  
  43.  
  44. echo $ocene[1];
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