Update of "php"
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Artifact ID: | ab0cca44f35f451d71381ab8663c68cf58a54c32 |
---|---|
Page Name: | php |
Date: | 2014-12-12 19:50:25 |
Original User: | mario |
Mimetype: | text/x-markdown |
Content
Shell PHP function wrappers
Allow to call plain PHP functions from the command line.
Parameters can be passed as arguments:
strtolower ABC
Or passed in from stdin:
echo ABC | strtolower
And array functions can use JSON
echo [1,2,3] | print_r
Alternatively as positional parameters
echo '[1,2,3]' | var_dump -
It's most useful of course with simple string-to-string pipes:
cat file | gzencode | base64_encode | base64_decode | gzdecode | print_r
(Or something more pointful..)