I have a string : 420_million_peo ple-(Softeware_Comp uter)/en
i want to have string cut like
string1 before -
string1 : 420_million_peo ple
and
string2 before between ()
string2: Softeware_Compu ter
string3 after /
string3: en
please help me
below is the code i have try to use (Not working lol)
the string is come from a sql
i want to have string cut like
string1 before -
string1 : 420_million_peo ple
and
string2 before between ()
string2: Softeware_Compu ter
string3 after /
string3: en
please help me
below is the code i have try to use (Not working lol)
the string is come from a sql
Code:
$query = "SELECT tmw_page.page_title FROM tmw_page";
$qry_result = mysql_query($query) or die(mysql_error());
$result=mysql_query($query);
while($row = mysql_fetch_row($result))
{
foreach($row as $values)
{
preg_match('/.*-/i', $values, $result);
echo ($result[0]);
echo("<br><br>$values2<br>");
list($junk, $good) = split('(', $string);
list($good, $junk) = split(')', $good);
echo $values;
}
}
Comment