Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Scott Johnson's Blog:
The Overhead of PHP is_ functions?
May 19, 2006 @ 11:04:36

Despite some apparent time as a nurse for two small furry creatures, Scott Johnson as found time to get back into his "geekiness" in this new post on his blog.

He asks the question: "Is there significant overhead to the is_ functions like is_array, is_object, is_string in php?" He wonders if those kinds of functions, since they are on such a base level, could cause more trouble than their worth when used en masse. He asks because it's used heavily in an approach for his developing Ookles application.

There's already been one comment made on the post, and it mentions that they are, in fact, a trivial call to PHP. It's a simple test that validates simply without much need for too much background action. It does mentions some caveats - is_object, is_resource, and, at times, is_callable.

tagged: overhead is_ function trivial is_array is_object is_string overhead is_ function trivial is_array is_object is_string

Link:

Scott Johnson's Blog:
The Overhead of PHP is_ functions?
May 19, 2006 @ 11:04:36

Despite some apparent time as a nurse for two small furry creatures, Scott Johnson as found time to get back into his "geekiness" in this new post on his blog.

He asks the question: "Is there significant overhead to the is_ functions like is_array, is_object, is_string in php?" He wonders if those kinds of functions, since they are on such a base level, could cause more trouble than their worth when used en masse. He asks because it's used heavily in an approach for his developing Ookles application.

There's already been one comment made on the post, and it mentions that they are, in fact, a trivial call to PHP. It's a simple test that validates simply without much need for too much background action. It does mentions some caveats - is_object, is_resource, and, at times, is_callable.

tagged: overhead is_ function trivial is_array is_object is_string overhead is_ function trivial is_array is_object is_string

Link:


Trending Topics: