Hi,
I am using the first style in some of the queries. And face no problem.



2011/11/17 Vladas Diržys <vladas.dir...@gmail.com>

> Hi guys,
>
> wondering if Zend Framework coding style says that multiline strings should
> be concatenated or it just says that if this string is concatenated, it
> should be done in a certain style?
>
> Basically, is following allowed?
>
>   1. $sql = "SELECT `id`, `name` FROM `people`
>   2.         WHERE `name` = 'Susan'
>   3.         ORDER BY `name` ASC ";
>
>
> Or should it be always like this?
>
>   1. $sql = "SELECT `id`, `name` FROM `people` "
>   2.      . "WHERE `name` = 'Susan' "
>   3.      . "ORDER BY `name` ASC ";
>
>
> --
> Best Regards,
> Vladas Diržys
>

Reply via email to