PHP ucwords() 函数

把每个单词的首字符转换为大写:

<?php echo ucwords("hello world"); ?>

注释:该函数是二进制安全的。

相关函数:

  • ucfirst() – 把字符串中的首字符转换为大写
  • lcfirst() – 把字符串中的首字符转换为小写
  • strtoupper() – 把字符串转换为大写
  • strtolower() – 把字符串转换为小写
微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_55222.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?