14 Static variable in PHP Atharva Satyendra Agrawal February 29, 2020 Atharva Satyendra Agrawal Program: <?php function display() { static $a = 10; $b = 20; echo "Static A= $a<br/>"; echo "Non-Static B= $b <br/>"; $a++; } display(); display(); display(); display(); ?> Output: Tweet Share Share Share Related Post