i want to have string cut like
string1 before -
string1 : 420_million_people
and
string2 before between ()
string2: Softeware_Computer
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
Expand|Select|Wrap|Line Numbers
- $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;
- }
- }