I believe if drupal provides a wrapper function, why not use it.<br>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.<br>

<br><br><div class="gmail_quote">On Tue, May 8, 2012 at 6:41 AM, Ms. Nancy Wichmann <span dir="ltr">&lt;<a href="mailto:nan_wich@bellsouth.net" target="_blank">nan_wich@bellsouth.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div style="font-size:12pt;font-family:arial,helvetica,sans-serif"><div><span>Coder keeps flagging this, so I thought I&#39;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?<br>

</span></div><div> </div><div><font color="#ff007f" face="bookman old style, new york, times, serif" size="4"><i><b>Nancy</b></i></font> <br></div><div><font face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</font></div>

</div></div><br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Vaibhav Jain<br>