I'm trying to find the first instance of a double quote after some text but the strpos function seems to want to ignore the character. It then goes back to the beginning of the string and finds the first instance.
I've tried converting the double quote to htmlspecialchars and then searching but no joy. Any help appreciatedPHP Code:<?php
$text="<B><font face=\"Verdana\" size=\"2\" color=\"#003366\">New Review @ Hexus!</font></b><br><font face=\"Verdana\" size=\"2\" color=\"#000000\">Posted on Monday, 14 July, 2003 by <a href=\"mailto:Ryszard@hexus.net?subject=Re: New Review @ Hexus!\">Ryszard</a><br><br><span class=\"news\">The mighty Hexus reviewing machine, Tarinder, rolls along with another review, featuring some high performance memory modules from OCZ, their PC3700 EL DDR to be exact.<br><br><i>This review's primary objective was to investigate whether OCZ's impressive claims held true. It's nice when products work just as they were intended to. OCZ's EL DDR PC-3700 Gold memory is about as good as we've seen if high RAM MHz is your thing. The next real performance step, we feel, is to have PC3700 speeds with 2-6-2-2 timings. Is any memory manufacturer brave enough to oblige us ?????</i><br><br>Check it out in full, <a href=\"http://www.hexus.net/review.php?review=579\" target=\"_blank\">here</a>.</span></font><BR><BR><hr noshade width=\"400\" align=\"center\" color=\"#003366\"><!-- end news item -->";
$end_position = strpos($text,"\"","review=");
if ($end_position === false)
{
print "NOT FOUND";
} else {
print $end_position;
}
?>






Bookmarks