JString::strpos
From Joomla! Documentation
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JString::strpos[edit]
Description[edit]
UTF-8 aware alternative to strpos Find position of first occurrence of a string.
Template:Description:JString::strpos [Edit Descripton]
Synopsis[edit]
public static JString::strpos ($str, $search, $offset=FALSE)
Parameter | Type | Default | Description |
---|---|---|---|
$str | $str | ||
$search | $search | ||
$offset | $offset | FALSE |
Returns[edit]
mixed Number of characters before the first match or FALSE on failure
Defined in[edit]
libraries/joomla/utilities/string.php (line 62)
- see source code in BitBucket
Referenced by[edit]
See also[edit]
Template:SeeAlso:JString::strpos
Examples[edit]
<CodeExamplesForm />