[#3940] Adding php example for an array of emails

This follows #3940. It just adds the example also to PHP. But I can't see how this would work with XML.

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3+
| Fixed tickets | 

Thanks!