Ask questions about frameworks, try your hand at php golf and strike gold or simply show off your latest work.
376 followers [0] 31 篇文章/周
Can we import all functions from a namespace easily?

Something like: ```php <?php namespace phasync\Util; import phasync; // instead of: use function phasync{run, go, ..., ..., ..., ..., ...}; ``` submitted by /u/frodeborli [link] [comments]

Thu May 16, 2024 18:04
Is there a reason why needle-haystack argument order in builtin PHP functions are inconsistent?

I used to work with PHP a few years ago and i was slightly confused with needle/haystack order. In some builtin functions the needle will come before the haystack, sometimes the haystack comes before the needle. What happened? submitted by /u/KickassMidget [link] [comments]

Thu May 16, 2024 15:04
Is it a good idea to use pipes to implement concurrency?

Basically this. I know stock PHP does not implement SMP, but I wanted to ask if this could be a good “workaround,” or if there are any better alternatives. Thanks! submitted by /u/anth3nna [link] [comments]

Thu May 16, 2024 15:04
Honest Question: Why did PHP remove dynamic properties in 8.x?

I understand PHP has had many criticisms in the past but I'm not sure the existence of dynamic properties of instantiated objects was ever one of them. In fact, dynamic properties are pretty much the hallmark of most interpreted or dynamic programming languages. Python allows it all the time and so do many others like Ruby, Perl, etc. I don't know what...

Thu May 16, 2024 09:04
Whats the point in routing?

Whats actually the point in it? I have the code execute on the same page its calling from. I've never had to use it before can anyone explain submitted by /u/lucidity123466 [link] [comments]

Thu May 16, 2024 03:05
PHP like Go-lang?

I've been working for a long time on a framework for async PHP, inspired by the Go language. It's very fast and can easily be used in existing projects (the async::run()) function creates a context which behaves like any other PHP function and inside that context you can use coroutines. ```php <?php require(DIR . '/../vendor/autoload.php'); /** *...

Wed May 15, 2024 12:04

打造你的专属新闻订阅源

准备好了吗?
开始 14 天试用,无需信用卡。

创建账号