Welcome Guest, Not a member yet? Register   Sign In
Read/Load all php files with a certain ending?
#9

[eluser]Bramme[/eluser]
I've always heard that strpos (or strrpos for that matter) are better/faster alternatives then srrchr.

Should do some benchmarks though.


Edit: okay, done some benchmarks (my first actually :p)

I searched for the last occurence of the character 'j' in a paragraph of lorem ipsum text. Repeated it 100.000 times, strrpos was marginally faster: about 0.005-0.006 seconds, however, when searching for 'dj' (which doesn't occur in the paragraph) strrpos suddenly takes a full 2 more seconds.


Messages In This Thread
Read/Load all php files with a certain ending? - by El Forum - 08-07-2008, 07:32 AM
Read/Load all php files with a certain ending? - by El Forum - 08-07-2008, 10:41 AM
Read/Load all php files with a certain ending? - by El Forum - 08-07-2008, 03:04 PM
Read/Load all php files with a certain ending? - by El Forum - 08-07-2008, 03:31 PM
Read/Load all php files with a certain ending? - by El Forum - 08-07-2008, 11:54 PM
Read/Load all php files with a certain ending? - by El Forum - 08-08-2008, 12:33 AM
Read/Load all php files with a certain ending? - by El Forum - 08-08-2008, 12:51 AM
Read/Load all php files with a certain ending? - by El Forum - 08-08-2008, 01:22 AM
Read/Load all php files with a certain ending? - by El Forum - 08-08-2008, 01:25 AM
Read/Load all php files with a certain ending? - by El Forum - 08-08-2008, 01:53 AM
Read/Load all php files with a certain ending? - by El Forum - 08-08-2008, 02:09 AM
Read/Load all php files with a certain ending? - by El Forum - 08-08-2008, 02:56 AM
Read/Load all php files with a certain ending? - by El Forum - 08-08-2008, 04:05 AM
Read/Load all php files with a certain ending? - by El Forum - 08-08-2008, 04:20 AM
Read/Load all php files with a certain ending? - by El Forum - 08-08-2008, 04:34 AM
Read/Load all php files with a certain ending? - by El Forum - 08-08-2008, 04:44 AM
Read/Load all php files with a certain ending? - by El Forum - 08-08-2008, 06:29 AM
Read/Load all php files with a certain ending? - by El Forum - 08-08-2008, 06:41 AM
Read/Load all php files with a certain ending? - by El Forum - 08-10-2008, 10:06 AM
Read/Load all php files with a certain ending? - by El Forum - 08-10-2008, 11:02 AM
Read/Load all php files with a certain ending? - by El Forum - 08-10-2008, 01:27 PM
Read/Load all php files with a certain ending? - by El Forum - 08-10-2008, 02:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB