Programming Languages PHP Objective
Sep 23, 2025

Which PHP function is used to create a fiber for cooperative multitasking?

Choose the correct answer:
A) new Thread()
B) new Fiber()
C) new Coroutine()
D) new Process()
Detailed Explanation

Explanation: PHP 8.1 introduced Fibers for cooperative multitasking. Fibers allow you to pause and resume execution at arbitrary points, enabling asynchronous programming patterns without blocking the main thread.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback