Welcome Guest, Not a member yet? Register   Sign In
Inflector Helper
#8

[eluser]sophistry[/eluser]
as long as we're talking optimization... there are a few things you can do with this function to make it better without going to regex.

just make two variables called $str_minus_1 and $str_minus_2 and then test against those instead of calling substr() 31 separate times.


Messages In This Thread
Inflector Helper - by El Forum - 12-16-2008, 05:43 AM
Inflector Helper - by El Forum - 12-16-2008, 10:20 AM
Inflector Helper - by El Forum - 12-16-2008, 10:56 AM
Inflector Helper - by El Forum - 12-16-2008, 11:05 AM
Inflector Helper - by El Forum - 12-16-2008, 11:41 AM
Inflector Helper - by El Forum - 12-16-2008, 12:36 PM
Inflector Helper - by El Forum - 12-17-2008, 01:37 AM
Inflector Helper - by El Forum - 12-17-2008, 08:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB