Skip to content

Instantly share code, notes, and snippets.

@catrope
Last active July 6, 2017 17:23
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 catrope/8aa482d662b850f8f198b55f3c0a4653 to your computer and use it in GitHub Desktop.
Save catrope/8aa482d662b850f8f198b55f3c0a4653 to your computer and use it in GitHub Desktop.
What does this PHP snippet output?
<?php
$tomorrowDate = ['20170706', '102026'];
var_dump( [
`action=blah&pageid=1&date={{$tomorrowDate[0]}}&comment='example`
=> 'example-1',
`action=blah&pageid=1&date={{$tomorrowDate[0]}}`
=> 'example-2',
] );
@catrope
Copy link
Author

catrope commented Jul 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment