Associative arrays in PHP
2000, "manh" => 1000, "huong" => 500); echo "Employee's salary is ". $luong_nhan_vien['hoang'] . ""; echo "Employee's salary is ". $luong_nhan_vien['manh']. "
"; echo "Employee's salary is ". $luong_nhan_vien['huong']. "
"; /* Second method to create associative arrays. */ $luong_nhan_vien['hoang'] = "high"; $luong_nhan_vien['manh'] = "medium"; $luong_nhan_vien['huong'] = "low"; echo "The salary of the wild employee is ". $luong_nhan_vien['hoang'] . "
"; echo "Employee's salary is ". $luong_nhan_vien['manh']. "
"; echo "Employee salary is ". $luong_nhan_vien['huong']. "
"; ?>