API17:JString::strpos
From Joomla! Documentation
JString::strpos
Description
UTF-8 aware alternative to strpos Find position of first occurrence of a string.
public static function strpos (
$str
$search
$offset=FALSE
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $str | $str | ||
| $search | $search | ||
| $offset | $offset | FALSE |
- Returns mixed Number of characters before the first match or FALSE on failure
- Defined on line 61 of libraries/joomla/utilities/string.php
See also
JString::strpos source code on BitBucket
Class JString
Subpackage Utilities- Other versions of JString::strpos
User contributed notes
Code Examples