[pmwiki-devel] trim() snag...

The Editor editor at fast.st
Thu May 10 10:45:57 CDT 2007


Hit a snag trying to improve the routine I used to manage CSV's

I use this routine to strip the extra spaces out of a CSV list like:

Bob  ,  Joe, Dave  , Ed

	$i = explode(",", $value);
	foreach ($i as $ii) {
		$out[] = trim($ii);
		}
	$value = implode(",", $out);

Can anyone see what I'm doing wrong? It seems to be having no effect
on the spaces...

Cheers,
Dan



More information about the pmwiki-devel mailing list