Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | PHP | LIB_MIO_WLIB_PHP | str_posEx SEARCH    

  Functions
comma
copy
count
disk_file_list
disk_file_load
disk_file_save
disk_folder_copy
disk_folder_list
disk_folder_remove
explode
get_baseURL
get_currentPath
implode
mioDb_connect
mioDb_query
mioxml_getElement
mioxml_getElementArray
mioxml_getOuter
settingsSetSimpleValue
settingsStringToArray
settingsToArray
strlen
strpos
strrpos
strtolower
strtotime
strtoupper
str_decrypt
str_encrypt
str_posEx
str_replace
str_split
substr

  Libraries
miodb_lib.php
mio_wlib.php
stats_read.php
stats_write.php

Function
str_posEx

Language: PHP


Syntax

str_posEx(Source, toFind, startAt)


Parameters

STRINGSourceSource string.
STRINGtoFindString to find.
INTstartAtOptional.
Where to start the search. Default is 0 (search in all the source string)


Return value

Position of the first character of the string found in the source, or false if not found.



Description

Search a string in a string.
All characters between two comma or apostrophe are ignored, so the function can be used for example to find attributes names in an XML tag.

Search is case insensitive.

Use the === operator for testing the return value of this function.




PHP Sample Code

$source = "this 'text' will not be found but this text will be found.";

echo(str_posEx($source, "text"));