Actually figured it out before I thought I would. Check this out.
Quote:
$title = "Test Post"; // Sometimes one might use test post 2
$exploded = explode(' ', $title);
$needles = array($exploded[0], $exploded[1], $exploded[2]);
foreach ($needles as $needle) {
echo $needle;
}
|
This hasn't been applied with mysql, but I'm doing that now so I can move forward.
Btw, just incase is wondering why I needed to do this.. Is because I have RSS Importers that sometimes bring in multiple posts across several networks that were mirrored to those both.. and I don't need duplicate entries, even if it's from different sites.