Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Array Contant PHP

<?php
define("Fruits", [
  "Mango", # This is item 0. Items are whole numbers
  "Watermelon", # Item 1
  "Orange" # Item 2
]);
echo "My favorite fruit is", Fruits[0];
?>
 
PREVIOUS NEXT
Tagged: #Array #Contant #PHP
ADD COMMENT
Topic
Name
9+5 =