SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: stripos and strpos boolean
-
Aug 22, 2007, 09:25 #1
- Join Date
- Jan 2004
- Location
- Temecula, CA
- Posts
- 188
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
stripos and strpos boolean
How do I get this to work
PHP Code:if (stripos($HayStack, $Needle))
{
}
And I did tryPHP Code:if (stripos($HayStack, $Needle) === true)
PHP Code:if (stripos($HayStack, $Needle) != false)
Any ideas?
-
Aug 22, 2007, 09:33 #2
if (stripos($HayStack, $Needle) !== false)
-
Aug 22, 2007, 09:35 #3
- Join Date
- Aug 2005
- Posts
- 453
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
PHP Code:if ( stripos($HayStack, $Needle) && substr( $HayStack, 0, len($Needle) == $Needle ) )
{
}
Computers and Fire ...
In the hands of the inexperienced or uneducated,
the results can be disastrous.
While the professional can tame, master even conquer.
-
Aug 22, 2007, 10:11 #4
- Join Date
- Jan 2004
- Location
- Temecula, CA
- Posts
- 188
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Bookmarks