lemmyland
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
exakat@lemmy.world to PHP@lemmy.worldEnglish · 1 month ago

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

shkspr.mobi

external-link
message-square
0
link
fedilink
6
external-link

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

shkspr.mobi

exakat@lemmy.world to PHP@lemmy.worldEnglish · 1 month ago
message-square
0
link
fedilink
I was noodling around in PHP the other day and discovered that this works: ⧉ PHPphp $🍞 = "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: ⧉ PHPfunction 😺🐶() { echo "catdog!"; } …
alert-triangle
You must log in or # to comment.

PHP@lemmy.world

php@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !php@lemmy.world

<?

namespace lemmy\php;

/*

Welcome to the PHP community on Lemmy

#Rules:

1: Soon™

#Helpful stuff:

PHP Documentation

Composer

PHP Standards

#Common frameworks:

Symfony

Larvel

*/

echo “Welcome”;

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 8 users / day
  • 13 users / week
  • 13 users / month
  • 86 users / 6 months
  • 1 local subscriber
  • 406 subscribers
  • 74 Posts
  • 34 Comments
  • Modlog
  • mods:
  • Madpeter@lemmy.world
  • BE: 0.19.15
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org