strargs package blog

Recommend this page to a friend!

Latest strargs package blog posts

  All package blogs All package blogs   strargs strargs   Blog strargs package blog   Post article Post article  

1. How to Implement a PHP CLI Arguments Parser To Pass Arrays or Objects to PHP Console Commands

Updated on: 2021-08-18

Posted on:

Command-line scripts that can run from an operating system console of a computer can take a list of parameters as a string passed in the front of the command name.

Usually, this string is processed to extract the parameter names and the values.

This package can extract the values of parameters passed as a string. It can also extract the values of parameters of more complex types like arrays or objects. It can decode parameter values that may be passed using the JSON format.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)


  All package blogs All package blogs   strargs strargs   Blog strargs package blog   Post article Post article  
For more information send a message to info at phpclasses dot org.