Saved X
Google login
SignUp with Email
X

Create array in php

theindreshverma ( Added  May 07, 10:53 pm )
Login

<?php
$movies = array(
      "Iron man",
      "Pirates of the caribbean",
      "The Wolverine",
      "Mission Impossible",
      "Hera Pheri"
   );

echo 'I like ' . $movies[0] . ' , ' . $movies[1] . ' and ' . $movies[2];
echo '<br>and ' . $movies[3] . ' , '.$movies[4];
?>

Sourcecode Tags

More Sourcecodes

More Sourcecodes