2015-06-11 12:02:27 +10:00
|
|
|
{
|
2015-09-20 17:12:43 +02:00
|
|
|
"name": "strpos",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["String"],
|
2015-11-20 19:53:24 +01:00
|
|
|
"description": "Return the first matching position of a substring within another string, or 0 if the substring is not found.",
|
2015-06-11 12:02:27 +10:00
|
|
|
"arguments": [ {"arg":"haystack","description":"string that is to be searched"},
|
|
|
|
{"arg":"needle","description":"string to search for"}],
|
2015-11-20 19:53:24 +01:00
|
|
|
"examples": [ { "expression":"strpos('HELLO WORLD','WORLD')", "returns":"7"},
|
|
|
|
{ "expression":"strpos('HELLO WORLD','GOODBYE')", "returns":"0"}
|
2015-06-11 12:02:27 +10:00
|
|
|
]
|
|
|
|
}
|