Last active
June 2, 2016 20:33
-
-
Save jakewhiteley/80d226ba58ff354156adae057c778729 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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