Skip to content

Instantly share code, notes, and snippets.

@dirceu
Created September 8, 2015 19:43
Show Gist options
  • Save dirceu/3ff3d1629d84a26683b3 to your computer and use it in GitHub Desktop.
Save dirceu/3ff3d1629d84a26683b3 to your computer and use it in GitHub Desktop.
Array of ranges and single values
<?php
$color1 = array_merge(
range(1, 5),
array(9),
range(13, 25),
array(26, 29, 30)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment