
{"id":6161,"date":"2011-10-26T14:27:44","date_gmt":"2011-10-26T14:27:44","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=6161"},"modified":"2011-10-26T14:27:44","modified_gmt":"2011-10-26T14:27:44","slug":"insertion-sort-algorithm-in-php","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2011\/10\/26\/insertion-sort-algorithm-in-php\/","title":{"rendered":"insertion sort algorithm in php"},"content":{"rendered":"<pre>\n&lt;?php\n\n$numbers = array(2,3,4,5,1,8,11,0);\n$count = count($numbers);\n\nfor($i=1;$i=0 &amp;&amp; $numbers[$j] &gt;  $key){\n        $numbers[$j+1] = $numbers[$j];\n        $numbers[$j]= $key;\n        $j= $j-1;\n    }\n}\nprint_r($numbers);\n\n\n?&gt;\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&lt;?php $numbers = array(2,3,4,5,1,8,11,0); $count = count($numbers); for($i=1;$i=0 &amp;&amp; $numbers[$j] &gt; $key){ $numbers[$j+1] = $numbers[$j]; $numbers[$j]= $key; $j= $j-1; } } print_r($numbers); ?&gt;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/6161"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=6161"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/6161\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=6161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=6161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=6161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}