{"id":544,"date":"2017-01-06T13:34:33","date_gmt":"2017-01-06T06:34:33","guid":{"rendered":"http:\/\/www.yellowweb.id\/blog\/?p=544"},"modified":"2017-01-06T13:34:33","modified_gmt":"2017-01-06T06:34:33","slug":"implode-dan-explode-php","status":"publish","type":"post","link":"https:\/\/www.yellowweb.id\/blog\/implode-dan-explode-php\/","title":{"rendered":"Implode dan Explode PHP"},"content":{"rendered":"<p>Tutorial kali ini akan membahas bagaimana caranya menggunakan fungsi PHP Implode dan Explode. Implode merupakan suatu fungsi yang digunakan untuk menyatukan beberapa data, misalnya string dan menyimpannya ke dalam sebuah variabel.<br \/>\n<!--more--><\/p>\n<p>Berbeda dengan Explode, berfungsi untuk memisahkan data misalnya string.<\/p>\n<p>Sebagai contoh, kita akan melihat skrip berikut ini:<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\n\t$nm_siswa = array('Alpacino','Antonio','Leonardo');\r\n\t$data = implode('-',$nm_siswa); \/\/ gabung dengan tanda -\r\n\r\n\techo $data;\r\n\r\n\t\/\/ keluarannya maka akan seperti ini\r\n\t\/\/ Alpacino-Antonio-Leonardo\r\n?&gt;<\/pre>\n<p>Dengan menggunakan fungsi implode kita dapat menggabaungkan beberapa data ke dalam satu varibel.<\/p>\n<p>Ini berlawanan dengan fungsi explode, contoh skripnya seperti berikut ini:<\/p>\n<pre class=\"lang:default decode:true\">&lt;?php\r\n\t$var = \"Explode memisahkan atau memecah string\";\r\n\t$pecah = explode(\" \", $var); \/\/pisah dengan memberikan spasi \r\n\r\n\tprint_r($pecah);\r\n\techo \"&lt;br \/&gt;\";\r\n\techo $var;\r\n\techo \"&lt;br \/&gt;\";\r\n\techo $pecah[1];\r\n\techo \"&lt;br&gt;\";\r\n\techo $pecah[3];\r\n\r\n\t\/\/ keluarannya maka akan seperti ini\r\n\t\/*\r\n\t\tArray ( [0] =&gt; Explode [1] =&gt; memisahkan [2] =&gt; atau [3] =&gt; memecah [4] =&gt; string )\r\n\t\tExplode memisahkan atau memecah string\r\n\t\tmemisahkan\r\n\t\tmemecah\r\n\t*\/\r\n?&gt;<\/pre>\n<p>Dengan menggunakan fungsi explode, kita dapat memecah data ke dalam beberapa array, lalu kita dapat mencetaknya sesuai dengan urutan array tertentu.<\/p>\n<p>Silahkan teman-teman mencobanya.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tutorial kali ini akan membahas bagaimana caranya menggunakan fungsi PHP Implode dan Explode. Implode merupakan suatu fungsi yang digunakan untuk menyatukan beberapa data, misalnya string dan menyimpannya ke dalam sebuah variabel.<\/p>\n","protected":false},"author":1,"featured_media":548,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[110,11],"tags":[290,292,291,191,88],"class_list":["post-544","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","category-tutorial","tag-array","tag-explode","tag-implode","tag-mysql","tag-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Implode dan Explode PHP - YELLOWWEB.ID<\/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.yellowweb.id\/blog\/implode-dan-explode-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Implode dan Explode PHP - YELLOWWEB.ID\" \/>\n<meta property=\"og:description\" content=\"Tutorial kali ini akan membahas bagaimana caranya menggunakan fungsi PHP Implode dan Explode. Implode merupakan suatu fungsi yang digunakan untuk menyatukan beberapa data, misalnya string dan menyimpannya ke dalam sebuah variabel.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.yellowweb.id\/blog\/implode-dan-explode-php\/\" \/>\n<meta property=\"og:site_name\" content=\"YELLOWWEB.ID\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-06T06:34:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/www.yellowweb.id\/blog\/wp-content\/uploads\/2017\/01\/php-implode-explode.png?fit=484%2C230&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"484\" \/>\n\t<meta property=\"og:image:height\" content=\"230\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"yellowweb\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"yellowweb\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/implode-dan-explode-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/implode-dan-explode-php\\\/\"},\"author\":{\"name\":\"yellowweb\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#\\\/schema\\\/person\\\/75188044e080844724e381ab6a5b9829\"},\"headline\":\"Implode dan Explode PHP\",\"datePublished\":\"2017-01-06T06:34:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/implode-dan-explode-php\\\/\"},\"wordCount\":99,\"image\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/implode-dan-explode-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/php-implode-explode.png\",\"keywords\":[\"array\",\"explode\",\"implode\",\"mysql\",\"php\"],\"articleSection\":[\"PHP\",\"Tutorial\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/implode-dan-explode-php\\\/\",\"url\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/implode-dan-explode-php\\\/\",\"name\":\"Implode dan Explode PHP - YELLOWWEB.ID\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/implode-dan-explode-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/implode-dan-explode-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/php-implode-explode.png\",\"datePublished\":\"2017-01-06T06:34:33+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#\\\/schema\\\/person\\\/75188044e080844724e381ab6a5b9829\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/implode-dan-explode-php\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/implode-dan-explode-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/implode-dan-explode-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/php-implode-explode.png\",\"contentUrl\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/php-implode-explode.png\",\"width\":484,\"height\":230,\"caption\":\"php-implode-explode\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/implode-dan-explode-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Implode dan Explode PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/\",\"name\":\"YELLOWWEB.ID\",\"description\":\"Kursus Web Design | Kursus Web Programming | Mobile Web Apps | Digital Marketing\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#\\\/schema\\\/person\\\/75188044e080844724e381ab6a5b9829\",\"name\":\"yellowweb\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g\",\"caption\":\"yellowweb\"},\"sameAs\":[\"https:\\\/\\\/www.yellowweb.id\"],\"url\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/author\\\/yellowweb\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Implode dan Explode PHP - YELLOWWEB.ID","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.yellowweb.id\/blog\/implode-dan-explode-php\/","og_locale":"en_GB","og_type":"article","og_title":"Implode dan Explode PHP - YELLOWWEB.ID","og_description":"Tutorial kali ini akan membahas bagaimana caranya menggunakan fungsi PHP Implode dan Explode. Implode merupakan suatu fungsi yang digunakan untuk menyatukan beberapa data, misalnya string dan menyimpannya ke dalam sebuah variabel.","og_url":"https:\/\/www.yellowweb.id\/blog\/implode-dan-explode-php\/","og_site_name":"YELLOWWEB.ID","article_published_time":"2017-01-06T06:34:33+00:00","og_image":[{"width":484,"height":230,"url":"https:\/\/i0.wp.com\/www.yellowweb.id\/blog\/wp-content\/uploads\/2017\/01\/php-implode-explode.png?fit=484%2C230&ssl=1","type":"image\/png"}],"author":"yellowweb","twitter_card":"summary_large_image","twitter_misc":{"Written by":"yellowweb","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.yellowweb.id\/blog\/implode-dan-explode-php\/#article","isPartOf":{"@id":"https:\/\/www.yellowweb.id\/blog\/implode-dan-explode-php\/"},"author":{"name":"yellowweb","@id":"https:\/\/www.yellowweb.id\/blog\/#\/schema\/person\/75188044e080844724e381ab6a5b9829"},"headline":"Implode dan Explode PHP","datePublished":"2017-01-06T06:34:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.yellowweb.id\/blog\/implode-dan-explode-php\/"},"wordCount":99,"image":{"@id":"https:\/\/www.yellowweb.id\/blog\/implode-dan-explode-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2017\/01\/php-implode-explode.png","keywords":["array","explode","implode","mysql","php"],"articleSection":["PHP","Tutorial"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.yellowweb.id\/blog\/implode-dan-explode-php\/","url":"https:\/\/www.yellowweb.id\/blog\/implode-dan-explode-php\/","name":"Implode dan Explode PHP - YELLOWWEB.ID","isPartOf":{"@id":"https:\/\/www.yellowweb.id\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.yellowweb.id\/blog\/implode-dan-explode-php\/#primaryimage"},"image":{"@id":"https:\/\/www.yellowweb.id\/blog\/implode-dan-explode-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2017\/01\/php-implode-explode.png","datePublished":"2017-01-06T06:34:33+00:00","author":{"@id":"https:\/\/www.yellowweb.id\/blog\/#\/schema\/person\/75188044e080844724e381ab6a5b9829"},"breadcrumb":{"@id":"https:\/\/www.yellowweb.id\/blog\/implode-dan-explode-php\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.yellowweb.id\/blog\/implode-dan-explode-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.yellowweb.id\/blog\/implode-dan-explode-php\/#primaryimage","url":"https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2017\/01\/php-implode-explode.png","contentUrl":"https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2017\/01\/php-implode-explode.png","width":484,"height":230,"caption":"php-implode-explode"},{"@type":"BreadcrumbList","@id":"https:\/\/www.yellowweb.id\/blog\/implode-dan-explode-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.yellowweb.id\/blog\/"},{"@type":"ListItem","position":2,"name":"Implode dan Explode PHP"}]},{"@type":"WebSite","@id":"https:\/\/www.yellowweb.id\/blog\/#website","url":"https:\/\/www.yellowweb.id\/blog\/","name":"YELLOWWEB.ID","description":"Kursus Web Design | Kursus Web Programming | Mobile Web Apps | Digital Marketing","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.yellowweb.id\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.yellowweb.id\/blog\/#\/schema\/person\/75188044e080844724e381ab6a5b9829","name":"yellowweb","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g","caption":"yellowweb"},"sameAs":["https:\/\/www.yellowweb.id"],"url":"https:\/\/www.yellowweb.id\/blog\/author\/yellowweb\/"}]}},"_links":{"self":[{"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/posts\/544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/comments?post=544"}],"version-history":[{"count":3,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/posts\/544\/revisions"}],"predecessor-version":[{"id":547,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/posts\/544\/revisions\/547"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/media\/548"}],"wp:attachment":[{"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/media?parent=544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/categories?post=544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/tags?post=544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}