Re: searching whole site or documentation fails on 'static'

From: Date: Thu, 24 May 2001 16:19:11 +0000
Subject: Re: searching whole site or documentation fails on 'static'
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-5057@lists.php.net to get a copy of this message
Hi! > Isn't there static variables in PHP? This is not the right place, to ask... Ask this on php-general => http://www.php.net/support.php Anyway, there are static vars: function count () { static $num = 0; echo ++$num; } count(); count(); will print 1 and 2. Goba ........................................................... . . . . . Editor of the Hungarian PHP manual, Admin of the Hungarian PHP mirror

« previous php.mirrors (#5057) next »