{"id":2015,"date":"2016-10-20T22:39:51","date_gmt":"2016-10-20T22:39:51","guid":{"rendered":"http:\/\/www.kodcafe.com\/?p=2015"},"modified":"2016-10-20T22:39:51","modified_gmt":"2016-10-20T22:39:51","slug":"php-de-bir-sayi-icindeki-en-kucuk-rakami-bulma","status":"publish","type":"post","link":"http:\/\/www.kodcafe.com\/?p=2015","title":{"rendered":"Php de bir sayi i\u00e7indeki en k\u00fc\u00e7\u00fck rakam\u0131 bulma"},"content":{"rendered":"<p>Bir say\u0131y\u0131 olu\u015fturan rakamlardan en k\u00fc\u00e7\u00fc\u011f\u00fcn\u00fc bulan program kodunu yaz\u0131n\u0131z.   <\/p>\n<p>\u00d6rne\u011fin; 95146982235 say\u0131s\u0131 i\u00e7in en k\u00fc\u00e7\u00fck rakam\u0131 1&#8217;dir.<!--more--><\/p>\n<pre lang=\"php\">\n\n<?php\n$sayi=\"25146982035\";\n\n$dizi=str_split(\"$sayi\");\n$uzun=count($dizi);\n$kucuk=$dizi[0];\n\nfor($i=0; $i<$uzun; $i++)\n{\n  for($y=1; $y<$uzun; $y++)\n  {\n   if($dizi[$i]<$dizi[$y] and $dizi[$i]<$kucuk)\n   {\n     $kucuk=$dizi[$i];\n     \n   }\n  \n  }\n}\necho \"En k\u00fcc\u00fck sayi..: \".$kucuk;\n?>\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Bir say\u0131y\u0131 olu\u015fturan rakamlardan en k\u00fc\u00e7\u00fc\u011f\u00fcn\u00fc bulan program kodunu yaz\u0131n\u0131z. \u00d6rne\u011fin; 95146982235 say\u0131s\u0131 i\u00e7in en k\u00fc\u00e7\u00fck rakam\u0131 1&#8217;dir.<\/p>\n","protected":false},"author":1,"featured_media":1972,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[318,321,327],"class_list":["post-2015","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-php-2","tag-php-de-bir-sayi-icindeki-en-kucuk-rakami-bulma","tag-php-en-kucuk-rakam-bulma"],"_links":{"self":[{"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=\/wp\/v2\/posts\/2015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2015"}],"version-history":[{"count":0,"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=\/wp\/v2\/posts\/2015\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=\/"}],"wp:attachment":[{"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2015"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.kodcafe.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}