Created
July 13, 2013 21:45
-
-
Save mahadazad/5992341 to your computer and use it in GitHub Desktop.
Extract MySQL queries to PHP arrays.
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
preg_match_all('/^(?:UPDATE|SELECT|INSERT INTO|CREATE).*;$/smU', file_get_contents('dump.sql'), $matches); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment