hai friends ,
i used some simple php functions, i got the answer
<!--Indian money value-->
<?php
$number="7001322311";
$spl=str_split($number);
$lpcount=count($spl);
$rem=$lpcount-3;
//echo "rem".$rem."<br/>";
//even one
if($lpcount%2==0)
{
for($i=0;$i<=$lpcount-1;$i++)
{
if($i%2!=0 && $i!=0 && $i!=$lpcount-1)
{
echo ",";
}
echo $spl[$i];
}
}
//odd one
if($lpcount%2!=0)
{
for($i=0;$i<=$lpcount-1;$i++)
{
if($i%2==0 && $i!=0 && $i!=$lpcount-1)
{
echo ",";
}
echo $spl[$i];
}
}
?>
Thanks for replies
j.sivaani