Last active
August 7, 2019 15:12
-
-
Save rpayanm/675390fc710d70f7c0c517a5e174dcda to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
$s = preg_replace('/\}|\{/', '', $query->__toString()); | |
$a = $query->arguments(); | |
foreach ($a as $key => $val) { | |
$a[$key] = '\'' . $val . '\''; | |
} | |
$select = strtr($s, $a); | |
// Or | |
// Install devel module. | |
$query->addTag('debug'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment