Re: csv problem.. read csv from var

From: Date: Fri, 16 Feb 2007 06:59:12 +0000
Subject: Re: csv problem.. read csv from var
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-43083@lists.php.net to get a copy of this message
hi > the problem i have is.. how about the csv is a var > ========================DATA=============== > $csv=" > A507257,3/2/2007,\"Hematologi Lengkap,Cholesterol Total,LDL > Cholesterol,Trigliserida,HDL Cholesterol,Asam Urat,Gula Darah Puasa,Gula > Darah 2 Jam PP,Kreatinin,Ureum,Bilirubin Total,Alkali > Fosfatase,SGOT,SGPT,Urine Lengkap,Feses Rutin,Darah Samar Faeces,VDRL,Anti - > HBs,Total PSA,HBsAg,Anti - HCV Total\""; > > what should i do to make the ouput like above. Use $arry = explode(',', $csv); to separate the variable into an array, then process it using foreach as before Niel

« previous php.db (#43083) next »