PHP Static Variables - Phptpoint

PHP Static Variables

PHP Summer Training/Internship with 2 Live Projects in Noida Fee is only 5500/-Click here to Book Your Seat.

/ins>

Static Variable

When a function is completed, all of its variables are normally deleted.

Output
0 0 0

However, sometimes you want a local variable to not be deleted then use static keyword.

Output
0 1 2

Latest Trending Technologies