<?
  $string = 'one<br>two<br>three<br>four<br>five';
  $nthPos = 4;
  $tmpArr = explode( '<br>', $string );
  $nthString = $tmpArr[($nthPos - 1)];
?>

Thanks Chris, that works great, but it's not doing what I want. I'm just trying to get the position of the 3rd occurrence (for example) of '<br>'. So I'm looking for a function that will return the value 19, given the above example string.


- Brian

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to