Where you can (and can't) use Emoji in PHP

I was noodling around in PHP the other day and discovered that this works: <?php $π = "bread"; echo "Some delicious " . $π; I mean, there's no reason why it shouldn't work. An emoji is just a Unicode character (OK, not just a character - but we'll get on to that), so it should be fine to use anywhere. Emoji work perfectly well as function names: function πΊπΆ() { echo "catdog!"; } πΊπΆ(); Definitions: define( "β", "huh?" ); echo β; And, well, pretty much everywhere: class π¦ { publiβ¦
Continue reading β