Re: can PHP do what tie does in Perl?
| From: | Jochem Maas | Date: | Fri, 02 Dec 2005 14:42:21 +0000 |
| Subject: | Re: can PHP do what tie does in Perl? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-226771@lists.php.net to get a copy of this message | ||
Bing Du wrote:
Hi, In Perl, hash can be stored in a file like this: tie(%contact,'SDBM_File',$tmp_file,O_RDWR|O_CREAT,0666); How the function should be implemented in PHP if it's possible?file_put_contents('/path/to/your/file', $someFingArray)
Thanks, Bing