PHP:是否有一个isLetter()函数或等价的? [英] PHP: is there an isLetter() function or equivalent?

查看:137
本文介绍了PHP:是否有一个isLetter()函数或等价的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不是PHP专家。我正在寻找相当于PHP的 isLetter()在Java中,但我找不到它。它是否存在?



我需要从给定字符串中提取字母,并将它们设置为小写字母,例如:Ap.ér4i5Ti6f;应该给apéritif。所以,是的,我的字符串中有强调的字符。

ctype_alpha()


I am no PHP expert. I am looking for the PHP equivalent of isLetter() in Java, but I can't find it. Does it exist?

I need to extract letters from a given string and make them lower case, for example: "Ap.ér4i5T i6f;" should give "apéritif'. So, yes, there are accentuated characters in my strings.

解决方案

ctype_alpha().

这篇关于PHP:是否有一个isLetter()函数或等价的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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