developer
developer

Reputation: 2050

how to match non-keyboard characters using php?

how can we match non-keyboards characters using php?? characters like-- ♠♣♥♦

i want to check if a data contains non-keyboard characters and if it does i'll have to reject it as per my requirements.

Upvotes: 0

Views: 319

Answers (1)

Gordon
Gordon

Reputation: 317197

Try

Example:

var_dump( mb_ereg('⊃', "≥⊂⊃⊄⊆⊇⊕⊗") ); // 1

You might want to clarify the question to get better answers/examples.

Also see

Upvotes: 1

Related Questions