tags:

views:

75

answers:

1
$values = array();
while($root = mysql_fetch_array($res)){

$root["prefix"] = $this->get_prefix($root['position']);
}
return $values;

I am getting the output as >>,position name

But I want... >>position name... is it possible to remove the comma.

A: 

Doesn't knowing the original code...

$root["prefix"] = preg_replace('/^>>,/','>>', $this->get_prefix($root['position']));
Vili
That doesn't help at all. Don't use a RegEX just because you can - in this case it looks like the OP has not actually posted all the code; there is probably some much simpler fix for this problem.
a_m0d