codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php $strOrigin = "Hello World!!!"; $strToken = "world"; $pStrPos1 = strstr($strOrigin, $strToken); $pStrPos2 = stristr($strOrigin, $strToken); if($pStrPos1 == TRUE) { echo $pStrPos1; } else { echo "pStrPos1 not found\n"; } if($pStrPos2 == TRUE) { echo $pStrPos2; } else { echo "pStrPos2 not found\n"; } ?>
Private
[
?
]
Run code
Submit