Wednesday, May 28, 2008

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 "<pre>";
print_r($testarr);
echo "</pre>";*/
$tst=split("\)|\(",$str);
echo "<pre>";
print_r($tst);
echo "</pre>";

?>

2 comments:

Anonymous said...

Use keywords people will use to conduct a search so you can
be found. If your post doesn't give that uniqueness and originality, most weblog owners may reject your proposed post. You can write blog on almost any topic which comes in your mind, technical or non-technical.

Feel free to surf to my homepage godaddy coupon

Anonymous said...

Hello! I just wanted to ask if you ever have any trouble with hackers?

My last blog (wordpress) was hacked and I ended up losing a
few months of hard work due to no data backup. Do you have any methods
to prevent hackers?

Feel free to surf to my web-site ... Sean Throgmorton

Post a Comment