strpos codeigniter php 7

strpos is a PHP function used in CodeIgniter to find the position of the first occurrence of a substring in a string. It takes two parameters: the string to search in, and the substring to search for. Example:

$string = "Hello, world!";
$substring = "world";
$position = strpos($string, $substring);
echo $position; // Output: 7

In this example, the strpos function returns 7, which is the position of the start of the substring "world" within the string "Hello, world!".