Jump to content

strrpos blowing past my charachter


sepoto

Recommended Posts

My strrpos function is having a very hard time locating my ','. EasyPHP installed on Windows7. It finds the third instance of the comma but not the first. Does anyone know why the strrpos function blows past three ',' charachters before it finds me a comma?<?php$start=0;$pos=0;while($pos=strrpos($book,",",$start)){ $entry=substr($book,$start,$pos); $start=$pos+1; echo $entry; }?>Thanks!Eric

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...