Examples of strpos usage in php

  • 2021-01-19 22:03:43
  • OfStack

Definitions and Usage
The strpos() function returns the position that first appeared in a series of other internal strings.

If the string is not found, this function returns FALSE.

grammar


strpos(string,find,start)

Note: The strpos() function is case sensitive.


<?php
echo strpos("Hello world!","wo");
?>

Results :6


Related articles: