Back Open Paginator
20.04.2024 14:43
jclermont (

For many years, I was the only dev working on a project. Not only is it a little bit lonely, but you miss out learning new things from your peers. If you're a Laravel dev currently in that situation, check out our private Slack community #php #laravel

Show Original Post

20.04.2024 14:23
williamxsp (

Property Hooks no PHP 8.4

Property Hooks Os property hooks são funções que controlam como uma propriedade é setada... #php

Show Original Post

20.04.2024 14:15
decompwlj (

t's a new fundamental theorem of arithmetic.
Academia is 13 years late.

A short story about my decomposition:

#decompwlj #FundamentalTheoremOfArithmetic #math #maths #mathematics #sequences #OEIS #NumberTheory #PrimeNumbers #JavaScript #php #graph #3D #classification #primes #threejs #webGL #integer #decomposition #numbers #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #academia #research #NSA #CIA #DGSE #DGSI #Google

Show Original Post

20.04.2024 13:51
michael (

Here is to writing code in emoji 😂

#php #emoji #programming

Show Original Post

20.04.2024 13:37
AboutRSS (

「SimplePie: A simple Atom/RSS parsing library for

——与 有关的

Show Original Post

20.04.2024 13:35
Edent (

🆕 blog! “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 […]

👀 Read more:

Show Original Post

20.04.2024 13:34
blog (

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!";}😺🐶();


define( "❓", "huh?" );echo ❓;

And, well, pretty much everywhere:

class 🦜{    public int $🐦;    public ?string $🦃;    public function __construct(int $🐦, ?string $🦃)    {        $this->🐦 = $🐦;        $this->🦃 = $🦃;    }}$🐓 = new 🦜(1234, "birb");echo $🐓->🐦;

How about namespaces? Yup!

namespace 😜;class 😉 {    public function 😘() {        echo "Wink!";    }}use 😜\😉;$😊 = new 😉();$😊->😘();

Even moderately complex Unicode sequences work:

echo <<<🏳️‍🌈Unicode is magic!🏳️‍🌈;

I've written before about the Quirks and Limitations of Emoji Flags. The humble 🏳️‍🌈 is actually the sequence U+1F3F3 (white flag), U+FE0F (Variation Selector 16), U+200D (Zero Width Joiner), U+1F308 (Rainbow).

Take a complex emoji like "Female Astronaut with Medium Dark Skin Tone" - 🧑🏾‍🚀 - that also works!

$🧑🏾‍🚀 = 1;$👷🏻‍♂️ = 2;echo $🧑🏾‍🚀 + $👷🏻‍♂️;

Probable the most complex emoji has 10 different codepoints! It looks like this - 🧑🏾‍❤️‍💋‍🧑🏻

And it works!

$🧑🏾‍❤️‍💋‍🧑🏻 = "Kiss Kiss. Bang Bang!";echo $🧑🏾‍❤️‍💋‍🧑🏻[-1];

There are some emoji which don't work;

$5️⃣ = "five";

The 5️⃣ emoji is U+0035 (Digit Five), U+FE0F (Variation Selector 16), U+20E3 (Combining Enclosing Keycap). PHP doesn't allow variables to start with digits, so it craps out with PHP Parse error: syntax error, unexpected integer "5", expecting variable or "{" or "$" in php shell code on line 1

You also can't use "punctuation" emoji as though they were normal characters:

echo 5 ❗= 6;

And, while not strictly emoji, you can't use mathematical symbols:

echo 5 ≤ 6;

So, there you have it. Is this useful? Well, probably. It is easy to get lost in a sea of text - so little pictograms can make it easier to see what you're doing. If the basic ASCII characters aren't part of your native language, perhaps it is useful to make use of the full range of Unicode.

Does your favourite programming language support Emoji?

#emoji #php #unicode

Show Original Post

20.04.2024 13:14
r (

izdomāju veidot riteni no jauna: pārvērts dažādus tekstus web draudzīgā saitē.
"ŠaurslieŽu dzelzcEļŠ bu metinde ç ö ş ğ ü ı * # karakter $ @ ! ? \' kullanılamaz @r € λ A æ Übérmensch på høyeste nivå! И я люблю PHP! кіт / котъ fi | `ye`s السلام-علیک sådan Ukraïns’ka mova" kļūst par saursliezu-dzelzcels-bu-metinde-c-o-s-g-u-i-karakter-kullanilamaz-r-toot-lv-eur-l-a-ae-ubermensch-pa-hoyeste-niva-i-a-lublu-php-kit-kot-fi-ye-s-alslam-lyk-sadan-ukrains-ka-mova


Show Original Post

20.04.2024 12:18
kaiserkiwi (

Oof. This was a really stupid error… My factory generated games with different categories. Main Game, DLC/AddOn and Expansion.

But the view I was testing filtered games by Main Game only… So by chance it was extremely unlikely that every game is a Main Game and so the count never was 5.

If feel really dumb right now.

#WebDev #PHP #Pest #Laravel #Coding

Show Original Post

20.04.2024 11:51
mandrasch (

Would be a dream if I could just deploy #php hobby projects by selecting my repository from GitHub (like on Vercels interface) 🥰#devops #gitops #developergoals

Show Original Post

20.04.2024 11:47
oldperl (

Anfrage: "Ich habe schon sehr viele Jahre NC EveCal im Einsatz. Jetzt habe ich das Problem, dass mein Provider nur noch PHP ab Version 8.1 zulässt.

Auf Ihrer Homepage habe ich gesehen, dass Sie Updates anbieten. Ist das noch aktuell und was würde das kosten?"

Nach über 8 Jahren eine neue Anfrage... 🤓

Ist / war ein richtig guter #Eventcalendar , ein Recode auf #PHP8 wäre möglich.

Der #PHP-#Veranstaltungskalender #NCEveCal 4.0 unter PHP 5.5 und 5.6 -

Show Original Post

20.04.2024 11:45
mandrasch (

I love #craftcms for its stable deploy process (project config in git). But I haven't found a quick way for setting up & deploying hobby projects yet on small VPS. Same with other #php CMS / frameworks.

Laravel Forge or ploi are great helpers, but with extra costs.💰 But ...1/

Show Original Post

1 2 3 4 5 6 ...52