I believe if drupal provides a wrapper function, why not use it.
Yes, drupal_substr is slower than substr itself with large amount of information to be processed and with multiple hits on a page, this can impact the page load time too.
Coder keeps flagging this, so I thought I'd ask about it. Following a parse_url() of a URL input from a form, is the use of drupal_substr() really necessary, or is a basic substr() adequate?
NancyInjustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
--
[ Drupal support list | http://lists.drupal.org/ ]