daily pastebin goal
56%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  $numbers = array(1,4,6,2);
  3.   array_push($numbers, array_shift($numbers));
  4.   print_r($numbers);
  5. ?>
  6.    
  7. Array
  8. (
  9.     [0] => 4
  10.     [1] => 6
  11.     [2] => 2
  12.     [3] => 1
  13. )
  14.    
  15. <?php
  16.   $array = [
  17.               [$piece1 = array(0, 6, 3, 7)],                  
  18.               [$piece2 = array(1, 2, 0, 0)],                  
  19.               [$piece3 = array(0, 0, 7, 1)],                  
  20.               [$piece4 = array(3, 8, 0, 0)],                  
  21.               [$piece5 = array(3, 3, 2, 0)],                  
  22.               [$piece6 = array(8, 6, 0, 0)],
  23.  
  24.   ];
  25.   print_r($array);
  26.   ?>
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