rajmohan Posted March 30, 2007 Share Posted March 30, 2007 i am having a citys like this one<br> two<br> three<br> four<br> five<br> etc... up to 1000 means what can i do i want output like this through coding with out putting ", this one "one","two","three","four",............"thousand" Link to comment https://forums.phpfreaks.com/topic/44879-loop-problem-i-think-it-is-very-difficult/ Share on other sites More sharing options...
monk.e.boy Posted March 30, 2007 Share Posted March 30, 2007 $a = array(); $a[] = 1; $a[] = 2; $a[] = 6; $a[] = 7; echo implode( ',', $a ); monk.e.boy Link to comment https://forums.phpfreaks.com/topic/44879-loop-problem-i-think-it-is-very-difficult/#findComment-217980 Share on other sites More sharing options...
jitesh Posted March 30, 2007 Share Posted March 30, 2007 You have city.but in which format. in array or fetching fron DB? Link to comment https://forums.phpfreaks.com/topic/44879-loop-problem-i-think-it-is-very-difficult/#findComment-217991 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.