我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

让国家在php中拥有城市和语言

I have a name of the city, let's say, it's "Londres" and the language it's written in: "French" in this case. It's just an example, there can be any languages and cities. What is the easiest way to get the country where there is such city, or the list of the countries?

Ideally, I want to get the country in the same language, i.e. in French in my case.

$city = "Londres";
$language = "FR";
// code for getting the city's country in French...

近期文章

  • 将WordPress永久链接重定向到简单的帖子名称
  • 如何访问字段集合中的项目(Drupal 7)
  • 在URL中显示ID号,并将ID号中的数据库结果提取到文本字段中
  • 如何使用json和php仅在正文中发送数据?
  • Magento为cms小部件添加参考块
  • 合并到对象后,usort将无法工作
  • 为下拉菜单排序多个查询数组
  • 如何使用条件PHP在单击上运行SQL查询?
  • 循环数组和if键值存在时为结构化数组添加1
  • php和js:HTTP或HTTPS
  • 无法访问Laravel管理面板
  • 从AJAX请求返回while循环
  • zen-cart网站网址问题
  • 为foreach()提供的无效参数!
  • Laravel Auth ::后卫(后卫) - > check()没有按预期工作
  • 如何在Laravel 5.3中为用户的两步注册创建自定义注册页面?
  • 如何在提交当前页面中的提交按钮后创建将在上一页中禁用的提交按钮?
  • PHP Xpath不返回“实时”节点列表
  • 将complexObjectArray转换为可用数组
  • 在div中加载视图的问题 - codeigniter

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华