Skip to content

Instantly share code, notes, and snippets.

@jmgunn87
Created May 17, 2012 17:06
Show Gist options
  • Save jmgunn87/2720240 to your computer and use it in GitHub Desktop.
Save jmgunn87/2720240 to your computer and use it in GitHub Desktop.
replace array_key_exists with isset
echo "array_key_exists(\"key\", \$array)" | sed 's/array_key_exists\s*(\s*\(["].*["]\)\s*,\s*\($[A-Za-z].*\)\s*)/isset(\2[\1])/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment