{"id":1351,"date":"2004-10-07T05:08:32","date_gmt":"2004-10-07T05:08:32","guid":{"rendered":"http:\/\/dev.jblove.net\/?p=1351"},"modified":"2004-10-07T05:08:32","modified_gmt":"2004-10-07T05:08:32","slug":"2%ec%b0%a8%eb%b0%b0%ec%97%b4%ec%a4%91%ec%97%90%ec%84%9c-%eb%aa%87%eb%aa%87-%ed%95%84%eb%93%9c%ea%b0%92%eb%a7%8c%ec%9c%bc%eb%a1%9c-%ec%a0%95%eb%a0%ac%ed%95%98%ea%b8%b0-db%ec%95%84%eb%8b%98","status":"publish","type":"post","link":"https:\/\/jblove.net\/?p=1351","title":{"rendered":"2\ucc28\ubc30\uc5f4\uc911\uc5d0\uc11c \uba87\uba87 \ud544\ub4dc\uac12\ub9cc\uc73c\ub85c \uc815\ub82c\ud558\uae30 (DB\uc544\ub2d8)"},"content":{"rendered":"<p>\nchiro<\/p>\n<p>###########################################<br \/>\n#  2\ucc28\uc6d0 \ubc30\uc5f4\uc744 \uc911 \uba87\uba87 \ud544\ub4dc\ub9cc sort\ud558\ub294 \ubc29\ubc95 #<br \/>\n###########################################<\/p>\n<p>phpschool\uc5d0\uc11c \uac80\uc0c9\uc744 \ud574\uc11c 2\ucc28\uc6d0 \ubc30\uc5f4\uc5d0\uc11c \uba87\uba87 \ud544\ub4dc\uac12\uc744 \uc774\uc6a9\ud574\uc11c \uc815\ub82c\ud558\ub294 \ubc29\ubc95\uc744 <br \/>\n\ucc3e\uc558\uc9c0\ub9cc \uc5c6\uc5b4\uc11c php\uba54\ub274\uc5bc\uc744 \ub4a4\uc84c\uc2b5\ub2c8\ub2e4. \uacb0\uad6d array_multisort \ub97c \ucc3e\uac8c \ub418\uc5c8\uc2b5\ub2c8\ub2e4.<br \/>\n\uc544\ub798\ub294 \uadf8 \uacb0\uacfc\ubb3c\uc744 \uc815\ub9ac\ud574\uc11c \uc62c\ub9bd\ub2c8\ub2e4. \uadf8\ub0e5 \ucc38\uc870\ud558\uc2dc\uace0 \ub9ce\uc740 \ub9ac\ud50c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<p>##############################################################################<br \/>\n<?<br \/>\n$arr[0] = array(0=>&#8217;1990-10-10&#8242;,1=>1,2=>&#8217;\ud64d\uae38\ub3d9&#8217;,3=>20000,4=>&#8217;\uc81c\ubaa91&#8242;);<br \/>\n$arr[1] = array(0=>&#8217;2001-10-10&#8242;,1=>4,2=>&#8217;\uae40\uae38\ub3d9&#8217;,3=>15000,4=>&#8217;\uc81c\ubaa92&#8242;);<br \/>\n$arr[2] = array(0=>&#8217;2003-10-10&#8242;,1=>3,2=>&#8217;\ubc15\uae38\ub3d9&#8217;,3=>30000,4=>&#8217;\uc81c\ubaa93&#8242;);<br \/>\n$arr[3] = array(0=>&#8217;2000-10-10&#8242;,1=>2,2=>&#8217;\ud55c\uae38\ub3d9&#8217;,3=>18000,4=>&#8217;\uc81c\ubaa94&#8242;);<br \/>\n$arr[4] = array(0=>&#8217;1998-10-10&#8242;,1=>5,2=>&#8217;chiro&#8217;,3=>10000,4=>&#8217;\uc81c\ubaa95&#8242;);<\/p>\n<p>foreach ($arr as $key => $row) { <br \/>\n   $aaa[$key] = $row[0];  \/\/ \ub0a0\uc9dc\uc784<br \/>\n   $bbb[$key] = $row[1];  \/\/ \uc21c\uc704<br \/>\n   $ccc[$key] = $row[2];  \/\/ \uc774\ub984<br \/>\n   $ddd[$key] = $row[3];  \/\/ \uac00\uaca9<br \/>\n   $eee[$key] = $row[4];  \/\/ \uc81c\ubaa9\uc784<br \/>\n}<\/p>\n<p>array_multisort($aaa, SORT_ASC, $eee, SORT_ASC, $arr);  \/\/ \ub0a0\uc9dc\uacfc \uc81c\ubaa9\ub97c \uc815\ub82c\ud558\ub294 \uacbd\uc6b0<br \/>\n\/\/ array_multisort($bbb, SORT_ASC, $aaa, SORT_ASC, $arr);  \/\/ \uc21c\uc704\uc640 \ub0a0\uc9dc\ub97c \uc815\ub82c\ud558\ub294 \uacbd\uc6b0<br \/>\n\/\/ array_multisort($ccc, SORT_ASC, $aaa, SORT_ASC, $arr);  \/\/ \uc774\ub984\uacfc \uc21c\uc704\ub97c \uc815\ub82c\ud558\ub294 \uacbd\uc6b0<br \/>\n\/\/ array_multisort($bbb, SORT_ASC, $aaa, SORT_ASC, $ccc, SORT_ASC, $arr);  \/\/ \uc21c\uc704\uc640 \ub0a0\uc9dc\uc640 \uc774\ub984\uc744 \uc815\ub82c\ud558\ub294 \uacbd\uc6b0<br \/>\nreset($arr);<\/p>\n<p>\/\/ print_r($arr);<\/p>\n<p>while (list($key, $val) = each($arr)) { <br \/>\n    echo &#8220;$val[0] &#8211; $val[1] &#8211; $val[2] &#8211; $val[3] &#8211; $val[4]&#8221;;<br \/>\n    echo &#8220;<br \/>&#8220;;<br \/>\n}<br \/>\n?> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>chiro ########################################### # 2\ucc28\uc6d0 \ubc30\uc5f4\uc744 \uc911 \uba87\uba87 \ud544\ub4dc\ub9cc sort\ud558\ub294 \ubc29\ubc95 # ########################################### phpschool\uc5d0\uc11c \uac80\uc0c9\uc744 \ud574\uc11c 2\ucc28\uc6d0 \ubc30\uc5f4\uc5d0\uc11c \uba87\uba87 \ud544\ub4dc\uac12\uc744 \uc774\uc6a9\ud574\uc11c \uc815\ub82c\ud558\ub294 \ubc29\ubc95\uc744 \ucc3e\uc558\uc9c0\ub9cc \uc5c6\uc5b4\uc11c php\uba54\ub274\uc5bc\uc744 \ub4a4\uc84c\uc2b5\ub2c8\ub2e4. \uacb0\uad6d array_multisort \ub97c \ucc3e\uac8c \ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc544\ub798\ub294 \uadf8 \uacb0\uacfc\ubb3c\uc744 \uc815\ub9ac\ud574\uc11c \uc62c\ub9bd\ub2c8\ub2e4. \uadf8\ub0e5 \ucc38\uc870\ud558\uc2dc\uace0 \ub9ce\uc740 \ub9ac\ud50c \ubc14\ub78d\ub2c8\ub2e4. ##############################################################################<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[51],"tags":[],"class_list":["post-1351","post","type-post","status-publish","format-standard","hentry","category-papa-php"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/1351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1351"}],"version-history":[{"count":0,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/1351\/revisions"}],"wp:attachment":[{"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}