Skip to content

Instantly share code, notes, and snippets.

@sgolemon
Created January 16, 2014 19:46
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 sgolemon/8462032 to your computer and use it in GitHub Desktop.
Save sgolemon/8462032 to your computer and use it in GitHub Desktop.
array<string>
<?hh
function foo(array<string> $bar) {
echo implode(',', $bar);
}
foo(['a','b','c']);
// Outputs 'a,b,c' as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment