Quote:
Originally Posted by cbkbud
Oh, okay. I would have gone like this:
PHP Code:
temp.x = blah.getdynamicvarnames();
for ( temp.foo : temp.x )
{
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
