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 - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -