Is there any way of extracting the position of each expression within the text?
I am using ereg_match_all to match an expression in an HTML file, but would like to know the position of each occurence within the file. Is this possible?
Thanks.
timster
5:58 pm on Apr 26, 2005 (gmt 0)
Maybe overlong, but would this do?
<?php $text = "Who is it who? Who is it? What is it?"; $word = "it";