Automat Losujacy - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of Automat Losujacy.php

  1. <?php
  2.  
  3. $arr = ["Kasia", "Marcin", "Erik", "Wojtek"];
  4. shuffle($arr);
  5.  
  6. echo "First pair is " . $arr[0] . " and " . $arr[1] . "\n";
  7. echo "Second pair is " . $arr[2] . " and " . $arr[3];
  8.  
File Description
  • Automat Losujacy
  • PHP Code
  • 18 Oct-2019
  • 183 Bytes
You can Share it: