Why use PHP?


No issue with the code, but I am trying to understand the why and how this php code will be used. Right now, this seems like a lot of code for something be done with basic html if the out put is going to be:
"I'm learning PHP!"

Replace this line with your code. 
        $sentence = array("I'm ", "learning ", "PHP!");
        foreach ($sentence as $word) {
          echo $word;


because we can't throw everyone in deep water in one go. We can use arrays if we want to retrieve multiply things from our database for example, but this course takes it in steps to teach concepts (like arrays)


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.