From: KONTRA Gergely Date: 2003-08-07T22:59:56+09:00 Subject: Re: C's static equivalent On 0807, ts wrote: > >>>>> "K" == KONTRA Gergely writes: > > K> Is there something similar to C's static keyword? > K> I want a single function, which has to access and modify a permanent > K> variable. Any solution without bundling the function to a class? > Use a closure Could you be more verbose? Eg. how to print out how many times a function was called. Gergo -- +-[ Kontra, Gergely PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+