Jump to content

[SOLVED] Getting data between two pieces of text


chris_2001

Recommended Posts

$replace = array("*vocab ", " end*","*def ","*wiki ","*spanish ","*english ");
$with   = array("<a href='searchdo.php?vocab=", "'>$Search</a>", "<a href='searchdo.php?def=","<a href='http://en.wikipedia.org/wiki/", "<a href='http://www.wordreference.com/es/en/translation.asp?spen=","<a href='http://www.wordreference.com/es/translation.asp?tranword=");
$English = str_replace($replace, $with, $EnglishGet);
$Spanish = str_replace($replace, $with, $SpanishGet);

 

There is a piece of data that appears after (*vocab or *def or *wiki or *spanish or *english) and before end*. I need it to be in two places (where it is right now and where $Search is) but I can't figure out how to get it in both rather than just the 1 its already in. Thanks.

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.