View Single Post
  #6  
Old 05-02-2008, 03:33 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by cbkbud View Post
Oh, okay. I would have gone like this:

PHP Code:
temp.blah.getdynamicvarnames();
for ( 
temp.foo temp.)
{
  if ( 
temp.foo.starts"LOL" ) )
  {
    
//whatev
  
}

A loop using getstringkeys() will run less then using getdynamicvarnames() since you specify the prefix to look for, instead of checking every member of getdynamicvarnames() if they start with the prefix
__________________
Reply With Quote