php Split and Pregmatch
$str="(medical and transcription) or jobs (testing purpose) india is good country (india)";
/*if(preg_match_all("/\\((.*?)\)/is",$str,$out1,PREG_SET_ORDER))
$count=count($out1);
$testarr=array();
for($i=0;$i<$count;$i++)
{
array_push($testarr,$out1[$i][1]);
}
echo "
";";*/
print_r($testarr);
echo "
$tst=split("\)|\(",$str);
echo "
";";
print_r($tst);
echo "
?>
Labels: Php

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home