php

Back Open Paginator
19.03.2026 13:26
dseguy (@dseguy@phpc.social)

#PHP's NAN is 0 as an integer, 'NAN' as a string and not comparable with itself.

Also, there are now warning when using them, so no one can get hurt by this.

#phptip #phptrick

php-tips.readthedocs.io/en/lat





Show Original Post


19.03.2026 13:25
Laracopilot (@Laracopilot@mastodon.social)

Bootcamp graduate → hired Laravel developer. The strategy:

❌ Don't: Submit AI code you can't explain
✅ Do: Generate scaffold, understand it, extend it, deploy live

Three projects:
→ Live SaaS with unique feature
→ Published Packagist package
→ Documented REST API with frontend

All deployed. All on GitHub. All explainable in an interview.

That's the portfolio that gets you hired. 🎓




Show Original Post


19.03.2026 13:00
techygeekshome (@techygeekshome@techhub.social)

WordPress Plugin - LinkGather | techygeekshome.info/wordpress- #Guide #JetPack #php #Plugins #refresh #Shortlinks #Wordpress 
techygeekshome.info/wordpress-





Show Original Post


19.03.2026 12:30
ajguides (@ajguides@mastodon.social)

WordPress Plugin - LinkGather | techygeekshome.info/wordpress-  
techygeekshome.info/wordpress-





Show Original Post


19.03.2026 11:10
TurboLearnPHP (@TurboLearnPHP@mastodon.social)

How to Prevent preg_match Catastrophic Backtracking

One regex can lock up a worker.

youtube.com/watch?v=bew7qYCVfjE




Show Original Post


19.03.2026 10:09
fortrabbit (@fortrabbit@mastodon.social)

Tempest, an exciting new PHP framework that’s lightweight and efficient. Check out our latest installation guide here: docs.fortrabbit.com/guides/mor




Show Original Post


19.03.2026 09:55
lukasrotermund (@lukasrotermund@social.tchncs.de)

When I create a #php func that returns an iterable and I don't iterate over it, e.g. to test an edge case, is the func body never executed?

```php
function foo(bool $foo): iterable {
if ($foo) throw new \Exception('edge case');

yield 'foo';
}

// nothing, no exception
foo(true);
```

I've looked into the opcodes of the script via `php -d opcache.enable_cli=1 -d opcache.opt_debug_level=0x10000 iterable_test.php` and besides of the `0001 GENERATOR_CREATE` statement the opcodes look as I've expected them. Or does `GENERATOR_CREATE` return to main's `0001 INIT_FCALL` location under the hood?

```
foo:
; (lines=13, args=1, vars=1, tmps=4)
; (before optimizer)
; /var/www/html/iterable_test.php:3-7
0000 CV0($foo) = RECV 1
0001 GENERATOR_CREATE
0002 EXT_STMT
...
```




Show Original Post


19.03.2026 09:27
bremendesign (@bremendesign@norden.social)

Heute Abend findet das Kirby Get Together №5 im Atelier Hund statt! Wir tauschen uns um unser Lieblings-CMS und alle Themen rund um das Web, Entwicklung mit PHP und coole Projekte aus.

Wie immer kostenlos mit Snacks und Getränken auf Spendenbasis.

Klingt gut? Dann meld dich jetzt noch an und komm um 18 Uhr im Atelier Hund direkt in der Bremer Innenstadt vorbei bremen.design/events/kirby-get

#kirbycms #webdev #bremen #php




Show Original Post


19.03.2026 09:25
heiglandreas (@heiglandreas@phpc.social)

If someone is running PHPUnit in a docker container and wonders why they can't filter by namespaces....

I finally managed it with

phpunit --filter 'My\\\\\\\Namespace'

Why 7? I have no idea! As long as it works! BTW: The quotes are important! Without them it'll be - - you guessed it correctly - 14 backslashes... 🙈

#php #phpunit




Show Original Post


19.03.2026 08:36
nabor (@nabor@troet.cafe)

@davidlohner mal davon abgesehen, das #WordPress immer wieder mit Sicherheitslücken auffällt, ja besonders durch die schlecht programmierten und nicht gewarteten Plugins, bemühe ich immer diesen Vergleich: warum sollte ich mir die Bismark auf meinen Dorfteich stellen, wenn ich eigentlich nur ein Ruderboot brauche?
Man kann je nach Bedarf mit pure #PHP oder #Symfony sehr leichtgewichtige tolle Ergebnisse produzieren.




Show Original Post


19.03.2026 08:07
decompwlj (@decompwlj@mathstodon.xyz)

A201010: Integers that can be written as the product and/or quotient of Lucas numbers
A201010 ➡️ oeis.org/A201010

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A201010.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A2010
2D graph, first 500 terms ➡️ decompwlj.com/2Dgraph500terms/

#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research





Show Original Post


19.03.2026 08:03
decompwlj (@decompwlj@mathstodon.xyz)

In the decomposition into weight × level + jump, the Twin Prime Conjecture becomes: "The number of prime numbers with a weight of 3 is infinite"

#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #numbers #twin #primes #conjecture #PrimeNumbers #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research





Show Original Post


1 ...72 73 74 75 76 77 78 79 80 81 82 ...524
UP