顯示具有 strrpos 標籤的文章。 顯示所有文章
顯示具有 strrpos 標籤的文章。 顯示所有文章

2016年7月25日 星期一

[PHP] function strrpos() in PHP

Function strrpos()

Find the position of the last occurrence of a substring in a string

Returns FALSE if the needle was not found.

Example:

<?

echo strrpos("http://localhost/img/c3d33ccc73567189.jpg","/");

?>


Result:

20