Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- if string contains .


Matthew1980 - 10:28 pm on Dec 16, 2010 (gmt 0)


Hi all,

Surely it would be better doing a substr() rather than strpos() or even using preg_match() (with the 'i' flag set for insensitivity) would do the trick.

Carefull with the use of === as this is only used for checking the same types against each other, other than that, your logic is right.

Cheers,
MRb


Thread source:: http://www.webmasterworld.com/php/4243343.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com