首页 > 解决方案 > 使用 $row[$variable] 以大写字母回显文本

问题描述

' . $row['variable_output'] . '如何使用我的代码以大写字母回显文本。我已经阅读并使用了这个如何以大写字母回显文本?但没有用。

标签: php

解决方案


你可能想要

echo strtoupper($row['variable_output']);

或者如果它是一个字符串连接:

echo 'some text here: '. strtoupper($row['variable_output']) .' more text here';

推荐阅读