Skip to content

Instantly share code, notes, and snippets.

@tqyq
Created December 7, 2015 02:56
Show Gist options
  • Save tqyq/4ef3a9691472783269ee to your computer and use it in GitHub Desktop.
Save tqyq/4ef3a9691472783269ee to your computer and use it in GitHub Desktop.
php cli get parameter
<?php
parse_str(implode('&', array_slice($argv, 1)), $_GET);
echo $_GET['test'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment