function - PHP get last occurrence between range (strrpos) -
how last occurrence of symbol between range ?
strrpos($text, '.', 100)
gives me last occurrence starting 100 end
but how last occurrence between range, like:
strrpos($text, '.', 100-250)
?
this work:
strrpos(substr($text', 100, 250), '.');
Comments
Post a Comment