$a="abc";
$b=123;
$c=1;
for ($i=0;$i<3;$i++) {
$str="'" . $a . "' , '" . $b . "', '" . $c . "', '1'";
$sum .= "(" . $str . "),";
}
//output ('abc' , '123', '1', '1'),('abc' , '123', '1', '1'),('abc' , '123', '1', '1'),
echo $sum;
Can anyone help me with the above codes?
I want the $sum
to output ('abc' , '123', '1', '1'),
one time only.
That I have to check the $str
is repeated.
Can anyone help me or give me some hits? Thanks.