PHP 中的 ucwords函数

首页 / PHP入门教程 / PHP 中的 ucwords函数

ucwords - 语法

ucwords(string)

它用于将字符串的第一个字符转换为每个字符串的大写字母

Sr.No 参数 & Description
1

string

链接:https://www.learnfk.comhttps://www.learnfk.com/php/php-function-ucwords.html

来源:LearnFk无涯教程网

它用于指定要转换的字符串

ucwords - 返回值

它返回修改后的字符串

ucwords - 示例

<?php
   echo ucwords("tutorials point");
?>

这将产生以下输出-

Tutorials Point

祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)

技术教程推荐

Python核心技术与实战 -〔景霄〕

消息队列高手课 -〔李玥〕

正则表达式入门课 -〔涂伟忠〕

小马哥讲Spring AOP编程思想 -〔小马哥〕

Python自动化办公实战课 -〔尹会生〕

爆款文案修炼手册 -〔乐剑峰〕

数据分析思维课 -〔郭炜〕

陈天 · Rust 编程第一课 -〔陈天〕

反爬虫兵法演绎20讲 -〔DS Hunter〕

好记忆不如烂笔头。留下您的足迹吧 :)