On Mon, 6 Mar 2006 12:12:40 +0100, Soryu wrote:
Some time ago I introduced a SQL heredoc in PHP. Why not use this:
... $query = <<<SQL SELECT * FROM `users` WHERE `foo` = {$bar}; SQL; ...
It will color the SQL according to the SQL syntax and let PHP substitute the variables as specified ...
Thanks Soryu, I saw that HEREDOC code. But I have my own reasons for doing the code the way I did (one reason being supporting 100000 lines of legacy code). Any ideas?
Q