正在加载视频...

视频加载失败

just found something wild in php... hit play. trust me:

13,494 次观看 • 1 年前 •via X (Twitter)

11 条评论

λ Phil™ 的头像
λ Phil™1 年前

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.

RedDeer.Games 的头像
RedDeer.Games1 年前

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:

Jason Judge - ❎💙🇺🇦🇮🇪🇪🇺 ❤ 的头像
Jason Judge - ❎💙🇺🇦🇮🇪🇪🇺 ❤1 年前

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.

Dikar 的头像
Dikar1 年前

$🪦 = "🐘";

Julian Schramm 的头像
Julian Schramm1 年前

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

Laranamed 的头像
Laranamed1 年前

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

Billions.A.Joel 的头像
Billions.A.Joel1 年前

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

Gregory Plüss 的头像
Gregory Plüss1 年前

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

AbbeymaniaC(Ø,G)KGeN 的头像
AbbeymaniaC(Ø,G)KGeN1 年前

😂

Charlie Etienne 的头像
Charlie Etienne1 年前

And it also works in filenames 😉

LuigiMrBrightSide🌵 的头像
LuigiMrBrightSide🌵1 年前

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

相关视频