Hamlets666 Posted December 9, 2006 Share Posted December 9, 2006 It there such a function? [b][i]Please, do not offer regular expresions.[/i][/b] Link to comment https://forums.phpfreaks.com/topic/30032-check-varuable-that-it-contains-only-english-types/ Share on other sites More sharing options...
esukf Posted December 9, 2006 Share Posted December 9, 2006 c_type-alpha()http://www.php.net/manual/en/function.ctype-alpha.php Link to comment https://forums.phpfreaks.com/topic/30032-check-varuable-that-it-contains-only-english-types/#findComment-138055 Share on other sites More sharing options...
Psycho Posted December 9, 2006 Share Posted December 9, 2006 I don't think c_type_alpha() is what you are after. That function will return true if the string contains characters such as áéíÓÚ, but will return false for anything other than a letter - that includes, spaces, comma and numbers. Link to comment https://forums.phpfreaks.com/topic/30032-check-varuable-that-it-contains-only-english-types/#findComment-138106 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.