milanchheda / FIFA-Predictor

FIFA World Cup 2018
1 stars 0 forks source link

Testing PHP Code in issue comments #2

Open milanchheda opened 1 year ago

milanchheda commented 1 year ago

@phptinker

$collection = collect([1, 2, 3, 4, 5, 6, 7]);
$chunks = $collection->chunk(4);
$chunks->all();

Let's see if this gets evaluated.

phptinker commented 1 year ago

@milanchheda, here's the evaluated code:

[
  Illuminate\Support\Collection {#2248
    all: [
      1,
      2,
      3,
      4,
    ],
  },
  Illuminate\Support\Collection {#2247
    all: [
      4 => 5,
      5 => 6,
      6 => 7,
    ],
  },
]
We evaluated this code ```php $collection = collect([1, 2, 3, 4, 5, 6, 7]); $chunks = $collection->chunk(4); $chunks->all(); ```

Check out Tinkerwell for even easier code evaluation.