Инструменты пользователя

Инструменты сайта


en:autorun:documentation:strpos

StrPos

StrPos(<str>, <substr> [, <occurence> [, <offset>, [<casesense>]]])
StrPos [/S] <VAR> <str> <substr> [<occurence> [<offset>]]

Returns the position of a substring in a source string.

Parameters

strSource string.
substrThe substring to find in the string.
occurenceOptional. The entry of the search string. The default is 1. If the value is negative, the search will start from the end of the string.
offsetOptional. The position from which the search will start.
casesenseOptional. Case-sensitive search (for a function).

Return value

If successful, the function returns the position of the found substring. If the substring is not found, or if the string or substring is empty, the function returns 0.

Switches

/SCase-sensitive search (for command).
en/autorun/documentation/strpos.txt · Последнее изменение: 2022/09/25 18:05 — loopback

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki