Jump to: navigation, search

Php strrpos

From w3cyberlearnings

Contents

PHP function strrpos

This function finds the substring index within another string start from the last position.

Syntax strrpos

  • string: string to input.
  • find: substring to be search for the index.
  • start: the start position to start search.
strrpos(string, find,start)

Return

  • When found: return the index position.
  • When not found: return false.

Example 1


<?php

echo strrpos("I don't want you to say anything to her","to");
?>

Output

33

Related Functions


Navigation
Web
SQL
MISC
References