PHP stripos() Function
Complete PHP String Reference
Definition and Usage
The stripos() function returns the position of the first occurrence of a
string inside another string.
If the string is not found, this function returns FALSE.
Syntax
|
stripos(string,find,start)
|
| Parameter |
Description |
| string |
Required. Specifies the string to search |
| find |
Required. Specifies the string to find |
| start |
Optional. Specifies where to begin the search |
Tips and Notes
Note: The stripos() function is case-insensitive.
Example
<?php
echo stripos("Hello world!","WO");
?>
|
The output of the code above will be:
Complete PHP String Reference
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|