I want to remove all characters after last specific string.
For this function I need opposite of strrchr
function.
For example, I want to remove all characters after last "." from "Hello.World.pdf". But with strrchr
function I can only remove "Hello.World" before "."!
I want something like this code:
<?php
echo strrchr("Hello.World.pdf" , "." , true);
?>
But this code isn't working!