Skip to content

Instantly share code, notes, and snippets.

@briandailey
Created April 7, 2011 19:02
Show Gist options
  • Save briandailey/908448 to your computer and use it in GitHub Desktop.
Save briandailey/908448 to your computer and use it in GitHub Desktop.
Show function args from the PHP docs.
# 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