PHP quotation marks and associative arrays: what style adheres to Zend Standard?
We use the Zend framework coding standard (although we don't use Zend framework itself).
http://framework.zend.com/manual/en/coding-standard.coding-style.html

What's the preferred style of using associative array values within a string? As far as I can see there are three ways of doing this (and the coding standards don't make it clear which is stylistically preferable).

1) My Preferred option.

    echo "Cool Story $family[bro]";

2) Some of my colleagues preferred option.

    echo "Cool Story {$family['bro']}";

3) We tend not to do this.

    echo 'Cool Story ' . $family['bro'];

Is either of these actually preferred by the Zend Project? If not, what do you use and why.



PHP quotation marks and associative arrays: what style adheres to Zend Standard?
===

We use the Zend framework coding standard (although we don't use Zend framework itself).
http://framework.zend.com/manual/en/coding-standard.coding-style.html

What's the preferred style of using associative array values within a string? As far as I can see there are three ways of doing this (and the coding standards don't make it clear which is stylistically preferable).

1) My Preferred option.

    echo "Cool Story $family[bro]";

2) Some of my colleagues preferred option.

    echo "Cool Story {$family['bro']}";

3) We tend not to do this.

    echo 'Cool Story ' . $family['bro'];

Is either of these actually preferred by the Zend Project? If not, what do you use and why.


