在PHP中将数组值更改为大写 [英] change the array value into uppercase in PHP

查看:44
本文介绍了在PHP中将数组值更改为大写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我需要在PHP中更改数组值。请告诉我怎么做。



$ color = array('A'=>'red','B'=>'green')。



我需要这个输出



[A] = RED

[ B] =绿色



请让我知道这个PHP脚本。





谢谢

Dhanasekaran Murugesan

解决方案

color = array('A'=>'red','B'= >'绿色')。



我需要此输出



[A] = RED

[B] =绿色



请让我知道PHP脚本。





谢谢

Dhanasekaran Murugesan


查看此页:

http://www.php.net/manual/en/function.strtoupper.php [ ^ ]

Hi i need to change the array values in PHP. Please tell me how to do this.

$color = array('A'=>'red','B'=>'green').

I need this output

[A] = RED
[B] = GREEN

Please let me know the PHP script for this.


Thanks
Dhanasekaran Murugesan

解决方案

color = array('A'=>'red','B'=>'green').

I need this output

[A] = RED
[B] = GREEN

Please let me know the PHP script for this.


Thanks
Dhanasekaran Murugesan


See this page:
http://www.php.net/manual/en/function.strtoupper.php[^]


这篇关于在PHP中将数组值更改为大写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆