Skip to content

Instantly share code, notes, and snippets.

View QuentinFonteneau's full-sized avatar
🎯
Focusing

Quentin Fonteneau QuentinFonteneau

🎯
Focusing
View GitHub Profile
<?php
// For some queries, use `$query->sqlQuery->` instead of `$query->`.
str_replace(['{', '}'], ['', ''], str_replace(array_keys($query->getArguments()), array_values($query->getArguments()), $query->__toString()));