Sometimes we have to use static variable in a PHP function. Actually static variables maintain its value between function calls. In below example function, the $count variable initialized as static with “0″ value.
abcphp.com is a social news website made for people to discover and share PHP related content from anywhere on the Internet, by submitting links and stories, and voting and commenting on submitted links and stories.