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

html - Cut text on left side inside button while centering -

plugins - CodeIgniter support on netbeans 8.0 -

php - Selecting items from MySQL for a status update feed efficiently while accounting for possible spam -