Skip to content

Instantly share code, notes, and snippets.

@jakewhiteley
Last active June 2, 2016 20:33
Show Gist options
  • Save jakewhiteley/80d226ba58ff354156adae057c778729 to your computer and use it in GitHub Desktop.
Save jakewhiteley/80d226ba58ff354156adae057c778729 to your computer and use it in GitHub Desktop.
<?php
// create a Set
$set = set( 'first item' );
// Add a new value
$set[] = 'second item';
// Add a new value
foreach ( $set as $val )
print($val);
// Delete a value
unset( $set[0] );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment