正在加载视频...
视频加载失败
just found something wild in php... hit play. trust me:
13,494 次观看 • 1 年前 •via X (Twitter)
11 条评论

php started life as a template engine, so it handles this kind of thing really nicely. You can use emojis in constants also - basically anywhere.

Wanna to know about some old but gold games? ❤️ This is your sign to try DROS! ✨ Explore 40 unique levels 🧩 Solve puzzles 🔍 Find hidden secrets Are you ready for the journey? Play now:

Unicode tokens, we have known about this for years, but chose to blot it out of our minds in case people started using them. Of course, not every language uses ascii letters, so it’s great for them.

$🪦 = "🐘";

Hear me out: what if you alias all the Laravel global helpers to emojis config() = 🔧() route() = 🔀() dd = 💀🚮() abort = 🚫()

Yeah you could also code with any characters (Japanese, Emoji,…) as long as they are valid chars and not reserved words

I am glad i hit that play button...😂 Just imagining how i start implementing it in prod apps.

I don't know much, but I actually knew that lol

😂

And it also works in filenames 😉

Wait, this has been there for a while, isn't it? Or is it a Mandela's effect because I remember using it on routes just for fun years ago
