<?php
  // associative array
  $University = [
      "name"=>"TSU",
      "location"=>"Tbilisi",
      "rating"=>"the best",
      "faculty"=>"Social & Political Sciences",
      "degree"=>"PhD"
  ];
  echo 'Georgia has an ancient university '. $University['name'] . ' which is in ' . $University['location'] .'.' . "\n";
  echo 'TSU is ' . $University['rating'] . ' in region' .'.' ."\n";
  echo $University['name'] . ' is my university because I study there at the faculty of ' .  $University['faculty'] .'.' . "\n";
  echo 'my current level of teaching is ' . $University['degree'] .'.' . "\n";

?>
by Mariam Gelkhauri
2 years ago
PHP
Array types
Associative array
Object Oriented PHP Tutorial
0
Pro tip: use ```triple backticks around text``` to write in code fences