Skip to content

Instantly share code, notes, and snippets.

@bielawb
Last active October 9, 2020 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bielawb/96cece31ba68b8917bfc2b889605cb7f to your computer and use it in GitHub Desktop.
Save bielawb/96cece31ba68b8917bfc2b889605cb7f to your computer and use it in GitHub Desktop.
Kolekcje po obu stronach znaku równości.
# Tyle samo elementów po obu stronach - $jeden = 1, $dwa = 2.
$jeden, $dwa = 1, 2
# Po prawej więcej elementów. Nadmiarowe elementy dodane do ostatniej zmiennej. $skalar = 1, $kolekcja = 2, 3, 4
$skalar, $kolekcja = 1, 2, 3, 4
# Po lewej więcej elementów. Nadmiarowe zmienne będą $null
$zmienna, $innaZmienna, $tuNull, $tamNull = 1, 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment