Articles »

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.
Posted by girish.r 259 days ago (http://www.phpzag.com)
1 Comment  | Bury | Tweet This | Tagged: how static variables php function
Add To 

Who Voted for this Story

Comments


Written by pilates
251 days ago
Nice post please vote mine!!!!!

http://www.pilates.co.nz/



Log in to comment or register here.