Re: [PHP] Fastest way to find out if a string contains a certain character?

2010-07-27 Thread Ashley Sheridan
On Tue, 2010-07-27 at 09:30 +0200, Gary wrote: I know there are a number of possible ways of doing this, but I was just wondering if there is an accepted way of doing so which is better than others, performance wise. An idiom, if you like. If you only need to find if a string contains

Re: [PHP] Fastest way to find out if a string contains a certain character?

2010-07-27 Thread Peter Lind
On 27 July 2010 11:27, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-07-27 at 09:30 +0200, Gary wrote: I know there are a number of possible ways of doing this, but I was just wondering if there is an accepted way of doing so which is better than others, performance wise. An

Re: [PHP] Fastest way to find out if a string contains a certain character?

2010-07-27 Thread Ashley Sheridan
On Tue, 2010-07-27 at 11:35 +0200, Peter Lind wrote: On 27 July 2010 11:27, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-07-27 at 09:30 +0200, Gary wrote: I know there are a number of possible ways of doing this, but I was just wondering if there is an accepted way of

Re: [PHP] Fastest way to find out if a string contains a certain character?

2010-07-27 Thread Peter Lind
On 27 July 2010 11:46, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-07-27 at 11:35 +0200, Peter Lind wrote: On 27 July 2010 11:27, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-07-27 at 09:30 +0200, Gary wrote: I know there are a number of possible ways