Beginner PHP Chapter 5 - Arrays - Code Block 5


/ Published in: PHP
Save to your folder(s)

Beginner PHP Chapter 5 - Arrays


Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. $array = array('dolphin','llama');
  4. echo($array[0]); //This will display the string 'dolphin'.
  5. echo $array[1]; //This will display the string 'llama'.
  6.  
  7.  
  8. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.