PHP code example of saboohy / argv

1. Go to this page and download the library: Download saboohy/argv library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

saboohy / argv example snippets




use Saboohy\Argv\Input;

$input = new Input($argv);

print_r($input->getOptions());
print_r($input->getCommand());
print_r($input->getFlags());
print_r($input->getArguments());