Last active
July 16, 2019 13:13
-
-
Save rpayanm/c825a24a84e24b8e1a2a0676b8d58ee6 to your computer and use it in GitHub Desktop.
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
<?php | |
$query_string = preg_replace('/\}|\{/', '', $query->__toString()); | |
$arguments = $query->arguments(); | |
foreach ($arguments as $key => $val) { | |
$arguments[$key] = '\'' . $val . '\''; | |
} | |
$result_query = strtr($query_string, $arguments); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment