Answers for "php define associative array constant"

PHP
1

array constant in php

<?php
define("vehicles", [
  "car",
  "bike",
  "jcb"
]);
echo vehicles[0];		//car
?>
Posted by: Guest on September-03-2021

Browse Popular Code Answers by Language