cilveks Posted January 10, 2007 Report Share Posted January 10, 2007 foreach ($change as $target => $value) { echo $target," = '",$value,"', "; } Kaads buutu efektiivaakais veids, lai izvadiitu visu iepriekshmineeto, bet neliktu aiz peedeejaas veertiibas komatu? vards = 'name', uzvards = 'surname', <- sheit beigaas tas komats nav vajadziigs. P.S. Varbuut ar explode, implode paliidziibu? Link to comment Share on other sites More sharing options...
andrisp Posted January 10, 2007 Report Share Posted January 10, 2007 (edited) $x = array(); foreach ($change as $target => $value) { $x[] = $target." = '".$value."' "; } echo implode(', ', $x); Edited January 10, 2007 by andrisp Link to comment Share on other sites More sharing options...
Val Posted January 10, 2007 Report Share Posted January 10, 2007 (edited) sākumā samet visu iekš $x $rest = substr($x, 0, -1); Edited January 10, 2007 by Val Link to comment Share on other sites More sharing options...
cilveks Posted January 10, 2007 Author Report Share Posted January 10, 2007 Paldies, viss notiekas ;) Link to comment Share on other sites More sharing options...
Recommended Posts