0 like 0 dislike
77 views
in Education & Reference by (1.3k points) | 77 views

1 Answer

0 like 0 dislike
while($rowQ2=mysqli_fetch_row($rsltQ2)){
	$ardata[]=$rowQ2[0];
}
$ar_user = array_map( function($str){ return sprintf("'%s'", $str); }, $ardata);
$ar_list = implode(",",$ar_user);


Output: 

'happy','Kalu','santa'
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Aug 1, 2017 in Education & Reference by Krish (810 points) | 122 views
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked Jun 26, 2019 in Education & Reference by Simmi (520 points) | 36 views
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
0 answers
asked Jun 13, 2018 in Education & Reference by Sam (1.3k points) | 58 views
1 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,199 questions
1,345 answers
410 comments
1,889 users