Skip to content

Instantly share code, notes, and snippets.

@rpayanm
Last active August 7, 2019 15:12
Show Gist options
  • Save rpayanm/675390fc710d70f7c0c517a5e174dcda to your computer and use it in GitHub Desktop.
Save rpayanm/675390fc710d70f7c0c517a5e174dcda to your computer and use it in GitHub Desktop.
<?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