View Single Post
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 06-13-2014 , 19:48   Re: Creating static inside loop
Reply With Quote #4

I suggest static type of variables to be declared at the beginning of a function that executes really frequently.

PHP Code:
{typeexecuteMeFrequently()
{
  static {
type} {name}[{count}];

  
// do anything and return data if needed

__________________

Last edited by claudiuhks; 06-13-2014 at 19:50.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks