Created
September 7, 2010 04:31
-
-
Save clairvy/567873 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# php oneliner | |
function phpv () { | |
local B | |
local e | |
while getopts 'B:e:' opt; do | |
case $opt in | |
B) B=$OPTARG;; | |
e) e=$OPTARG;; | |
esac | |
done | |
shift $((OPTIND - 1)) | |
php -r "$B; var_dump($e);" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment