What happens when you chain #PHP list() calls?
And when you include a full assignement in the middle?
Also, with #PHP 8.6 deprecating the list keyword, modern code likes like chains of arrays.
#phptip #phptrickhttps://php-tips.readthedocs.io/en/latest/tips/list_or_array.html
Remote
Exakat
@Exakat@phpc.social
49 Followers
109 Following
17 Posts
Joined January 03, 2023
Open post
Replying to
@fatalerror@shrk.crystalsky.dev I made an onboarding book for #PHP here.
If you have experience, and want a refresher, I'm interested in your feedback.
Is this useful to modernize your knowledge?
https://thephpbook.readthedocs.io/en/latest/
2
1
1
0
Open post
Replying to
@saramg@fosstodon.org @Girgias@phpc.social and have you ever tried to add a lone semi-colon between the { and the 'case'?
https://3v4l.org/n9S9r/rfc#vgit.master
I mean 2 semi colons, and #PHP gets mad at you, but one is fine. none is fine too... mind you.
6
4
1
0
Open post
Open post
I checked every php domain on internet. There is a lot to discover, and tools to build there!
https://www.exakat.io/i-checked-every-php-domain-on-the-internet/
3
0
2
0
Open post
Replying to
@nubecolectiva@mastodon.social Interesting insight. PHP has always been a glue to connect many technologies, so this makes sense.
#PHP delivers!
1
0
0
0
Open post
Replying to
@jrf_nl@phpc.social @saramg@fosstodon.org @Girgias@phpc.social I sense a lack of ambition here...
What about we accept 3 of them, and let the next generations try to figure this out once we have died?
1
0
0
0
Open post
Replying to
3
0
0
0
Open post
Replying to
@alister@hachyderm.io #phptip #phptrick Quite an evil piece of syntax! This goes to the PHP tips archive!
0
0
0
0
Open post
Replying to
@alestaweb@mastodon.social Why do you keep repeating that every year?
#PHP delivers, that's all.
0
0
0
0
Open post
Replying to
@ghostwriter@phpc.social Nice! func_get_args() and variadic nuances are fun (sic).
I already had a #PHP tip about it here : https://php-tips.readthedocs.io/en/latest/tips/func_get_args.html
Though, this is a different angle, so I'd like to feature this hack/post in the archive.
Do you plan to make a longer post about this?
0
0
0
0
Open post
Replying to
0
0
0
0
Open post
Replying to
@jaapio@phpc.social Thank you ❤️ !
I have a few of them in my own memories, your message brought them back to my mind.
And all this works with public messages too.
0
2
0
0
Open post
Replying to
@jrf_nl@phpc.social Argl, no! I'm still at the RFC phase. Thanks!
That 4th line is getting hard to read, though I know understand the meaning problem of list() = array() too. Words are hard, why can't they be simple like #PHP ?
0
1
0
0
Open post
Replying to
@grmpyprogrammer@yac.grumpy-learning.com The best elephpant is the one that stand with you while you code and whispers: #PHP delivers!
And there are so many of them! Including the mamoth!
0
0
0
0


