{"id":249,"date":"2020-11-09T11:24:33","date_gmt":"2020-11-09T08:24:33","guid":{"rendered":"http:\/\/www.etemkeskin.com\/?p=249"},"modified":"2020-11-09T11:24:39","modified_gmt":"2020-11-09T08:24:39","slug":"php-de-en-cok-kullanilan-gomulu-build-in-fonksiyonlar","status":"publish","type":"post","link":"https:\/\/www.etemkeskin.com\/index.php\/tr\/2020\/11\/09\/php-de-en-cok-kullanilan-gomulu-build-in-fonksiyonlar\/","title":{"rendered":"PHP&#8217; de En \u00c7ok Kullan\u0131lan  G\u00f6m\u00fcl\u00fc (Build-in) Fonksiyonlar"},"content":{"rendered":"<p><strong>1.) array() ;<\/strong>&nbsp;Php de array(dizi) olu\u015fturmak i\u00e7in kullan\u0131l\u0131r.<\/p>\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$arr1=array(1,2,3,4,5);\u00a0 \/\/be\u015f de\u011ferli bir array olu\u015fturuldu.\n$arr2=array();\u00a0 \u00a0        \/\/bo\u015f array olu\u015fturuldu.\n$arr3= array(\"ad\"=>\"ali\",\"soyad\"=>\"kaya\",numara=>45);      \/\/key, value \u00e7ifti olan bir array olu\u015fturuldu.<\/pre>\n\n\n\n<p><strong>2.)<\/strong> <strong>count() <\/strong>  : Bir array deki eleman say\u0131s\u0131n\u0131 d\u00f6nd\u00fcr\u00fcr.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$cars=array(\"elma\",\"armut\",\"ayva\");\necho count($cars);    \/\/output olarak 3 say\u0131s\u0131n\u0131 d\u00f6nd\u00fcr\u00fcr.<\/pre>\n\n\n\n<p><strong>3.) isset() :<\/strong> De\u011fi\u015fken tan\u0131mlan\u0131p bir de\u011fer atand\u0131ysa&nbsp;<strong>True<\/strong>&nbsp;de\u011fi\u015fken tan\u0131mlanmad\u0131ysa&nbsp;<strong>False<\/strong>&nbsp;de\u011ferini d\u00f6nd\u00fcr\u00fcr. <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$mail = $_POST['mail'];    \/\/html form post edilmediyse NULL de\u011feri al\u0131r\nif (isset($mail)){\n    echo \"mail post edildi\";\n}else{\n    echo \"mail post edilmedi.\";\n}<\/pre>\n\n\n\n<p><strong>4.) is_array():&nbsp;<\/strong>De\u011fi\u015fkenin&nbsp;array&nbsp;olup&nbsp;olmad\u0131\u011f\u0131n\u0131&nbsp;kontrol&nbsp;eder.&nbsp;Boolean&nbsp;de\u011fer&nbsp;d\u00f6nd\u00fcr\u00fcr.<\/p>\n\n\n\n<p>isset($de\u011fi\u015fken)<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$deg = array(\"a\",\"b\",\"c\");\nis_array($deg);        \/\/output olarak True de\u011ferini d\u00f6nd\u00fcr\u00fcr.<\/pre>\n\n\n\n<p><strong>5.) substr(<\/strong><em>string,start,length<\/em> <strong>):&nbsp;&nbsp;<\/strong>Bir&nbsp;string&nbsp;yani&nbsp;karakter&nbsp;dizisindeki&nbsp;istenilen&nbsp;say\u0131da&nbsp;karakteri&nbsp;d\u00f6nd\u00fcrmek&nbsp;i\u00e7in&nbsp;kullan\u0131l\u0131r.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">echo substr(\"Hello world\",3)   \/\/ 0' dan ba\u015flayarak sayarsak output olarak  \"lo world\"   d\u00f6nd\u00fcr\u00fcr.\necho substr(\"Hello world\",1,7);  \/\/\/ 0' dan ba\u015flayarak sayarsak output olarak  8 karakter \"lo worl\"   d\u00f6nd\u00fcr\u00fcr.<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1.) array() ;&nbsp;Php de array(dizi) olu\u015fturmak i\u00e7in kullan\u0131l\u0131r. 2.) count() : Bir array deki eleman say\u0131s\u0131n\u0131 d\u00f6nd\u00fcr\u00fcr. 3.) isset() : De\u011fi\u015fken tan\u0131mlan\u0131p bir de\u011fer atand\u0131ysa&nbsp;True&nbsp;de\u011fi\u015fken tan\u0131mlanmad\u0131ysa&nbsp;False&nbsp;de\u011ferini d\u00f6nd\u00fcr\u00fcr. 4.) is_array():&nbsp;De\u011fi\u015fkenin&nbsp;array&nbsp;olup&nbsp;olmad\u0131\u011f\u0131n\u0131&nbsp;kontrol&nbsp;eder.&nbsp;Boolean&nbsp;de\u011fer&nbsp;d\u00f6nd\u00fcr\u00fcr. isset($de\u011fi\u015fken) 5.) substr(string,start,length ):&nbsp;&nbsp;Bir&nbsp;string&nbsp;yani&nbsp;karakter&nbsp;dizisindeki&nbsp;istenilen&nbsp;say\u0131da&nbsp;karakteri&nbsp;d\u00f6nd\u00fcrmek&nbsp;i\u00e7in&nbsp;kullan\u0131l\u0131r.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[28],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP&#039; de En \u00c7ok Kullan\u0131lan G\u00f6m\u00fcl\u00fc (Build-in) Fonksiyonlar - blog website<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.etemkeskin.com\/index.php\/tr\/2020\/11\/09\/php-de-en-cok-kullanilan-gomulu-build-in-fonksiyonlar\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP&#039; de En \u00c7ok Kullan\u0131lan G\u00f6m\u00fcl\u00fc (Build-in) Fonksiyonlar - blog website\" \/>\n<meta property=\"og:description\" content=\"1.) array() ;&nbsp;Php de array(dizi) olu\u015fturmak i\u00e7in kullan\u0131l\u0131r. 2.) count() : Bir array deki eleman say\u0131s\u0131n\u0131 d\u00f6nd\u00fcr\u00fcr. 3.) isset() : De\u011fi\u015fken tan\u0131mlan\u0131p bir de\u011fer atand\u0131ysa&nbsp;True&nbsp;de\u011fi\u015fken tan\u0131mlanmad\u0131ysa&nbsp;False&nbsp;de\u011ferini d\u00f6nd\u00fcr\u00fcr. 4.) is_array():&nbsp;De\u011fi\u015fkenin&nbsp;array&nbsp;olup&nbsp;olmad\u0131\u011f\u0131n\u0131&nbsp;kontrol&nbsp;eder.&nbsp;Boolean&nbsp;de\u011fer&nbsp;d\u00f6nd\u00fcr\u00fcr. isset($de\u011fi\u015fken) 5.) substr(string,start,length ):&nbsp;&nbsp;Bir&nbsp;string&nbsp;yani&nbsp;karakter&nbsp;dizisindeki&nbsp;istenilen&nbsp;say\u0131da&nbsp;karakteri&nbsp;d\u00f6nd\u00fcrmek&nbsp;i\u00e7in&nbsp;kullan\u0131l\u0131r.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.etemkeskin.com\/index.php\/tr\/2020\/11\/09\/php-de-en-cok-kullanilan-gomulu-build-in-fonksiyonlar\/\" \/>\n<meta property=\"og:site_name\" content=\"blog website\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-09T08:24:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-11-09T08:24:39+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.etemkeskin.com\/#website\",\"url\":\"https:\/\/www.etemkeskin.com\/\",\"name\":\"blog website\",\"description\":\"Etem KESK\\u0130N\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.etemkeskin.com\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"tr\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.etemkeskin.com\/index.php\/tr\/2020\/11\/09\/php-de-en-cok-kullanilan-gomulu-build-in-fonksiyonlar\/#webpage\",\"url\":\"https:\/\/www.etemkeskin.com\/index.php\/tr\/2020\/11\/09\/php-de-en-cok-kullanilan-gomulu-build-in-fonksiyonlar\/\",\"name\":\"PHP' de En \\u00c7ok Kullan\\u0131lan G\\u00f6m\\u00fcl\\u00fc (Build-in) Fonksiyonlar - blog website\",\"isPartOf\":{\"@id\":\"https:\/\/www.etemkeskin.com\/#website\"},\"datePublished\":\"2020-11-09T08:24:33+00:00\",\"dateModified\":\"2020-11-09T08:24:39+00:00\",\"author\":{\"@id\":\"https:\/\/www.etemkeskin.com\/#\/schema\/person\/dcbc30282861ce578b96a79ce8789629\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.etemkeskin.com\/index.php\/tr\/2020\/11\/09\/php-de-en-cok-kullanilan-gomulu-build-in-fonksiyonlar\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.etemkeskin.com\/index.php\/tr\/2020\/11\/09\/php-de-en-cok-kullanilan-gomulu-build-in-fonksiyonlar\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.etemkeskin.com\/index.php\/tr\/2020\/11\/09\/php-de-en-cok-kullanilan-gomulu-build-in-fonksiyonlar\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ana sayfa\",\"item\":\"https:\/\/www.etemkeskin.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP&#8217; de En \\u00c7ok Kullan\\u0131lan G\\u00f6m\\u00fcl\\u00fc (Build-in) Fonksiyonlar\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.etemkeskin.com\/#\/schema\/person\/dcbc30282861ce578b96a79ce8789629\",\"name\":\"etemkeskin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.etemkeskin.com\/#personlogo\",\"inLanguage\":\"tr\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6af0148b790691ed24ae245fb3dc773b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6af0148b790691ed24ae245fb3dc773b?s=96&d=mm&r=g\",\"caption\":\"etemkeskin\"},\"url\":\"https:\/\/www.etemkeskin.com\/index.php\/author\/etemkeskinyahoo-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/posts\/249"}],"collection":[{"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/comments?post=249"}],"version-history":[{"count":1,"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/posts\/249\/revisions"}],"predecessor-version":[{"id":250,"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/posts\/249\/revisions\/250"}],"wp:attachment":[{"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/media?parent=249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/categories?post=249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/tags?post=249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}