{"id":3733,"date":"2020-09-03T21:57:44","date_gmt":"2020-09-03T12:57:44","guid":{"rendered":"https:\/\/katblog.manadream.net\/?p=3733"},"modified":"2020-10-13T21:31:37","modified_gmt":"2020-10-13T12:31:37","slug":"connecting-letters","status":"publish","type":"post","link":"https:\/\/katblog.manadream.net\/index.php\/2020\/09\/03\/connecting-letters\/","title":{"rendered":"[PHP]Let&#8217;s Try Connecting Letters! [Programming for Kids and Above #6]"},"content":{"rendered":"<p>Hello!<\/p>\n<p>I&#8217;m kat, the manager of &#8216;kat&#8217;s blog.&#8217;<\/p>\n<p>This time, which is the sixth installment of the &#8216;Programming Lessons&#8217; series, I will be talking about <span class=\"marker\">handling letters and variables<\/span>.<\/p>\n<p>Up until last time, programming-wise we&#8217;ve been going over putting letters into variables.<\/p>\n<p>However, for letters and variables, it is also possible to <span class=\"marker\">connect more letters and variables in the middle<\/span>.<\/p>\n<p>Let&#8217;s learn about how to do that this time!<\/p>\n\n\n<h2 class=\"wp-block-heading\">What we will use this time<\/h2>\n\n\n<p><div class=\"kaisetsu-box4\"><div class=\"kaisetsu-box4-title\">The programming language we will use this time<\/div><p><\/p>\n<p>This time we will use the following programming language to write out a program.<\/p>\n<div class=\"simple-box7\">\n<p>\u30fbPHP<\/p>\n<\/div>\n<p><\/p><\/div><\/p>\n<p><div class=\"kaisetsu-box4\"><div class=\"kaisetsu-box4-title\">The programming environment we will use this time<\/div><p><\/p>\n<p>Let&#8217;s use the paiza website which is listed below for executing the program.<\/p>\n<p><span class=\"twobutton\"><span class=\"color-button02\"><a href=\"https:\/\/paiza.io\/en\/projects\/new\" target=\"_blank\" rel=\"noopener noreferrer\">paiza website<\/a><\/span><\/span><\/p>\n<p>For those who are using this website for the first time, the way to use it is listed in the page below, so please check it out.<\/p>\n<p>https:\/\/katblog.manadream.net\/index.php\/2020\/06\/09\/how-to-use-paiza-io\/<\/p>\n<p><\/p><\/div><\/p>\n\n\n<h2 class=\"wp-block-heading\">Let&#8217;s connect letters with letters<\/h2>\n\n\n<p>Without further ado, allow me to explain how to connect letters with letters.<\/p>\n<p>Write out the source code as shown below, and execute it.<\/p>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n &lt;?php\n  \n $message = &quot;Hello.&quot; . &quot;Mr.Bobby.&quot;;\n echo $message;\n<\/pre><\/div>\n\n<p>Then the result will show up as follows.<\/p>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nHello.Mr.Bobby.\n<\/pre><\/div>\n\n<p><div class=\"kaisetsu-box3\"><div class=\"kaisetsu-box3-title\">\uff5eExplanation\uff5e<\/div><p><\/p>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; first-line: 3; title: ; notranslate\" title=\"\">\n$message = &quot;Hello.&quot; . &quot;Mr.Bobby.&quot;;\n<\/pre><\/div>\n\n<p>The letters have been connected, and been put into an array.<\/p>\n<p>You can tell that there is a &#8216;<span class=\"marker\">. (dot)<\/span>&#8216; between &#8220;Hello.&#8221; and &#8220;Mr.Bobby.&#8221;<\/p>\n<p>Actually for PHP, you can connect letters simply by putting this &#8216;. (dot)&#8217; in between.<\/p>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; first-line: 4; title: ; notranslate\" title=\"\">\necho $message;\n<\/pre><\/div>\n\n<p>The letters that have been connected are displayed.<\/p>\n<p>Here, &#8216;Hello.&#8217; and &#8216;Mr.Bobby.&#8217; are connected and<\/p>\n<div class=\"simple-box5\">\n<p>Hello.Mr.Bobby.<\/p>\n<\/div>\n<p>will be displayed.<\/p>\n<div class=\"kaisetsu-box4\"><div class=\"kaisetsu-box4-title\">\u2713 Point<\/div><p><\/p>\n<p>When you connect letters with letters, a &#8216;. (dot)&#8217; is used.<\/p>\n<p><\/p><\/div>\n<p><\/p><\/div><\/p>\n\n\n<h2 class=\"wp-block-heading\">Let&#8217;s connect letters with variables<\/h2>\n\n\n<p>Earlier we connected letters with letters, but let&#8217;s connect letters with variables this time.<\/p>\n<p>First, let&#8217;s take a look at the source code.<\/p>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n  \n $name = &quot;Mr.&quot;;\n $message = &quot;Hello.&quot;.\n $name . &quot;Bobby.&quot; ;\n echo $message;\n<\/pre><\/div>\n\n<p>Once executed, the result will also be as the following.<\/p>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nHello.Mr.Bobby.\n<\/pre><\/div>\n\n<p><div class=\"kaisetsu-box3\"><div class=\"kaisetsu-box3-title\">\uff5eExplanation\uff5e<\/div><p><\/p>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; first-line: 3; title: ; notranslate\" title=\"\">\n$name = &quot;Mr.&quot;;\n$message = &quot;Hello.&quot; . $name . &quot;Bobby.&quot; ;\n<\/pre><\/div>\n\n<p>First, in the &#8216;$name&#8217; variable, the title &#8216;Mr.&#8217; is entered.<\/p>\n<p>And in the next row, &#8216;Hello.&#8217; and &#8216;$name&#8217; and &#8216;Bobby.&#8217; are connected by a &#8216;. (dot)&#8217;.<\/p>\n<p>As you probably know already, just like when you connect letters with letters, you also use a &#8216;. (dot)&#8217; when you connect letters with variables.<\/p>\n<p><\/p>\n<p>For this time &#8216;Bobby&#8217; is in &#8216;$name,&#8217; so the execution result will be all of them put together and it will be,<\/p>\n<div class=\"simple-box5\">\n<p>Hello.Mr.Bobby.<\/p>\n<\/div>\n<p>will be displayed.<\/p>\n<div class=\"kaisetsu-box4\"><div class=\"kaisetsu-box4-title\">\u2713 Point<\/div><p>Even when connecting letters with variables, and variables with variables , a &#8216;. (dot)&#8217; is used.<\/p><\/div>\n<p><\/p><\/div><\/p>\n\n\n<h2 class=\"wp-block-heading\">Final thoughts<\/h2>\n\n\n<p>Thank you for reading to the end of this lesson this time as well.<\/p>\n<p>This time we learned how to connect letters with letters, and letters with variables.<\/p>\n<p>The process of connecting letters and variables is used often when doing <span class=\"marker\">loop processing<\/span>, so let&#8217;s make sure to remember it.<\/p>\n<p>We will start learning about <span class=\"marker\">loop processing<\/span> from the next article, so please look forward to it!<\/p>\n<p>See you next time!<\/p>\n\n\n<br>\n\n\n\n<div class=\"wp-block-columns has-2-columns is-layout-flex wp-container-core-columns-is-layout-1 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-button alignleft is-style-outline is-style-outline--af4e0f8bee3b9c60577dbed878c124e0\"><a class=\"wp-block-button__link has-vivid-cyan-blue-color has-text-color\" href=\"https:\/\/katblog.manadream.net\/index.php\/2020\/09\/03\/associative-arrays\/\">&lt;&lt; Proceed to previous article<\/a><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-button alignright is-style-outline is-style-outline--90cff416efbd8858921e1f386f832de7\"><a class=\"wp-block-button__link has-vivid-cyan-blue-color has-text-color\" href=\"https:\/\/katblog.manadream.net\/index.php\/2020\/09\/06\/writing-loop-processes-for-statement\/\">Proceed to next article &gt;&gt;<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello! I#8217;m kat, the manager of #8216;kat#8217;s blog.#8217; This time, which is the sixth installment<\/p>\n","protected":false},"author":1,"featured_media":4182,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_locale":"ja","_original_post":"https:\/\/katblog.manadream.net\/?p=3733","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[102],"tags":[107,108],"class_list":["post-3733","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming-lessons","tag-english","tag-programming","ja"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/katblog.manadream.net\/wp-content\/uploads\/2019\/08\/peace.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paUgnN-Yd","_links":{"self":[{"href":"https:\/\/katblog.manadream.net\/index.php\/wp-json\/wp\/v2\/posts\/3733"}],"collection":[{"href":"https:\/\/katblog.manadream.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/katblog.manadream.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/katblog.manadream.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/katblog.manadream.net\/index.php\/wp-json\/wp\/v2\/comments?post=3733"}],"version-history":[{"count":42,"href":"https:\/\/katblog.manadream.net\/index.php\/wp-json\/wp\/v2\/posts\/3733\/revisions"}],"predecessor-version":[{"id":3826,"href":"https:\/\/katblog.manadream.net\/index.php\/wp-json\/wp\/v2\/posts\/3733\/revisions\/3826"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/katblog.manadream.net\/index.php\/wp-json\/wp\/v2\/media\/4182"}],"wp:attachment":[{"href":"https:\/\/katblog.manadream.net\/index.php\/wp-json\/wp\/v2\/media?parent=3733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/katblog.manadream.net\/index.php\/wp-json\/wp\/v2\/categories?post=3733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/katblog.manadream.net\/index.php\/wp-json\/wp\/v2\/tags?post=3733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}