84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
Like+0 Add Reply 关闭回复 phpcn_u1582 reply
PHPzhong2017-05-27 17:45:57 1 floor $arr=array( array(1=>'A'), array(2=>'B'), array(3=>'C'), array(4=>'D'), array(5=>'A'), array(6=>'B'), array(7=>'C'), array(8=>'D'), ); $res=array();foreach ($arr as $key => $value) { foreach ($value as $k => $v) { $res[$v][$k]=$v; } }$res=array_values($res);echo "";print_r($res);die(); Like+0 Add Reply 关闭回复 phpcn_u1582 reply
$arr=array(
array(1=>'A'), array(2=>'B'), array(3=>'C'), array(4=>'D'), array(5=>'A'), array(6=>'B'), array(7=>'C'), array(8=>'D'), );
$res=array();foreach ($arr as $key => $value) {
foreach ($value as $k => $v) { $res[$v][$k]=$v; }
}$res=array_values($res);echo "
";print_r($res);die();
Popular Topics More> What size is a5 paper Registration domain name query tool The difference between nohup and & Introduction to the meaning of += in C language Popular Articles Bitstamp exchange Android version download and installation tutorial Memecoins Dogecoin (DOGE), Shiba Inu (SHIB), and Pepe (PEPE) Show Potential for Notable Movements Which computer security guard is best for windows? How to get the Pig Shield in Cats Quest 3 Genshin Impact When will version 5.0 be launched? Popular Tutorials More> Related Tutorials Popular Recommendations Latest courses The latest ThinkPHP 5.1 world premiere video tutorial (60 days to become a PHP expert online training course) 1395196 PHP introductory tutorial one: Learn PHP in one week 4207159 JAVA Beginner's Video Tutorial 2353731 The latest ThinkPHP 5.1 world premiere video tutorial (60 days to become a PHP expert online training course) 1395196 JAVA Beginner's Video Tutorial 2353731 Little Turtle's zero-based introduction to learning Python video tutorial 493484 Quick introduction to web front-end development 213523 Master PS video tutorials from scratch 843932 [Web front-end] Node.js quick start 3242 Complete collection of foreign web development full-stack courses 2572 Go language practical GraphQL 2041 550W fan master learns JavaScript from scratch step by step 472 Python master Mosh, a beginner with zero basic knowledge can get started in 6 hours 11105 Latest Downloads More> Web Effects Website Source Code Website Materials Front End Template [form button] jQuery enterprise message form contact code [Player special effects] HTML5 MP3 music box playback effects [Menu navigation] HTML5 cool particle animation navigation menu special effects [form button] jQuery visual form drag and drop editing code [Player special effects] VUE.JS imitation Kugou music player code [html5 special effects] Classic html5 pushing box game [Picture special effects] jQuery scrolling to add or reduce image effects [Photo album effects] CSS3 personal album cover hover zoom effect [Bootstrap template] Organic fruit and vegetable supplier web template Bootstrap5 [backend template] Bootstrap3 multifunctional data information background management responsive web page template-Novus [Bootstrap template] Real estate resource service platform web page template Bootstrap5 [Bootstrap template] Simple resume information web template Bootstrap4 [Bootstrap template] bootstrap responsive widescreen book education website template-DREAMLIFE [backend template] MAC style responsive blue enterprise CMS background management system template [backend template] Responsive gradient atmosphere background management system website template-usinessbox [Bootstrap template] Responsive vegetable and fruit store website template-Organio [PNG material] Cute summer elements vector material (EPS PNG) [PNG material] Four red 2023 graduation badges vector material (AI EPS PNG) [banner picture] Singing bird and cart filled with flowers design spring banner vector material (AI EPS) [PNG material] Golden graduation cap vector material (EPS PNG) [PNG material] Black and white style mountain icon vector material (EPS PNG) [PNG material] Superhero silhouette vector material (EPS PNG) with different color cloaks and different poses [banner picture] Flat style Arbor Day banner vector material (AI+EPS) [PNG material] Nine comic-style exploding chat bubbles vector material (EPS+PNG) [Front-end template] Home Decor Cleaning and Repair Service Company Website Template [Front-end template] Fresh color personal resume guide page template [Front-end template] Designer Creative Job Resume Web Template [Front-end template] Modern engineering construction company website template [Front-end template] Responsive HTML5 template for educational service institutions [Front-end template] Online e-book store mall website template [Front-end template] IT technology solves Internet company website template [Front-end template] Purple style foreign exchange trading service website template
About us Disclaimer Sitemap php.cn:Public welfare online PHP training,Help PHP learners grow quickly!
$arr=array(
$res=array();
foreach ($arr as $key => $value) {
}
$res=array_values($res);
echo "