I am learning about static variables but the script below doesn't quite work help!
<pre><code>function do_something()
{
static first_time = true;
if (first_time) {
// Execute this code only the first time the function is
➥called
...
}
// Execute the function's main logic every time the function is
➥called
...
}
</code></pre>

<p>it's bring up this error </p>

<pre><code>Parse error: parse error, expecting `T_VARIABLE' in C:\wamp\www\functions.php on line 3
</code></pre>
