Raised This Month: $ Target: $400
 0% 

Creating static inside loop


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 06-13-2014 , 19:48   Re: Creating static inside loop
Reply With Quote #1

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
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode