Skip to content

Instantly share code, notes, and snippets.

@yuki777
Created April 27, 2012 01:36
Show Gist options
  • Save yuki777/2504914 to your computer and use it in GitHub Desktop.
Save yuki777/2504914 to your computer and use it in GitHub Desktop.
php serializeされたfileをzshからprintする関数
# ~/.zshrc
# ex : php-unserialize PhpSerialized.text
function php-unserialize() {
php -r "print_r(unserialize(file_get_contents('$*')));"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment