Functional Programming in PHP · UTF-8

This page exists to assist readers of the Functional Programming in PHP book with using UTF-8 characters in their PHP code.

In recent versions of PHP developers can use multi-byte (UTF-8) characters as function names. The list below allows a copy and paste of a few common characters into your editor.

Ellipsis
…
Cards
♠
♥
♦
♣
Communication
☎
☏
Faces
☠
☹
☺
☻
Night sky
★
☆
☽
☾
Transport and sport
⚙
⚰
⛴
⛵
⛷
⛽
⛸
⛹
Weather
☀
☼
☉
☃
☂
☔
☁
⛅
⛈
⛱

For more characters you can use a table like these: