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

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -