Re: [PEPr] Comment on Networking::Net_SMPP_Client
| From: | Ian Eure | Date: | Sat, 23 Apr 2005 19:32:20 +0000 |
| Subject: | Re: [PEPr] Comment on Networking::Net_SMPP_Client | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-37378@lists.php.net to get a copy of this message | ||
On Saturday 23 April 2005 12:11 pm, Nikolas Coukouma wrote:
> Nikolas Coukouma (http://pear.php.net/user/atrus) has commented on the
> proposal for Networking::Net_SMPP_Client.
>
> Comment:
>
> re: golbal variable for lookup:
>
> make the hash a static variable in a member function. For example:
> class Foo {
> function getHash() {
> static hash = array( 1, 2 );
> return hash;
> }
> }
>
I've never seen this trick before, and I don't see it documented anywhere in
the PHP manual. Is this intended behavior, or a side-effect?
I.e. will it continue to work?
Attachment: [application/pgp-signature]
Attachment: [application/pgp-signature]