Created
April 7, 2011 19:02
-
-
Save briandailey/908448 to your computer and use it in GitHub Desktop.
Show function args from the PHP docs.
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
# Usage: phpargs array_shift | |
# Put this in our .bashrc / .bash_profile | |
phpargs() { | |
curl -s http://us3.php.net/$1 | \ | |
sed -n '/<div class="methodsynopsis dc-description">/,/<\/div>/p' | \ | |
sed 's/<[^>]*>//g' | tr -d "\n" | |
echo | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment