This repository was archived by the owner on Jun 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -494,22 +494,22 @@ echo "next line".__LINE__."\n";
494494</code>
495495
496496This code:
497- 1. first returns the contents of the PHP website,
498- 2. then executes the `echo` statement.
497+ 1. first returns the contents of the PHP website,
498+ 2. then executes the `echo` statement.
499499
500500<code php>
501501$coroutine = spawn file_get_contents('https://php.net');
502502echo "next line".__LINE__."\n";
503503</code>
504504
505505This code:
506- 1. starts a coroutine with the `file_get_contents` function.
507- 2. The next line is executed without waiting for the result of `file_get_contents`.
508- 3. The coroutine is executed after the `echo` statement.
506+ 1. starts a coroutine with the `file_get_contents` function.
507+ 2. The next line is executed without waiting for the result of `file_get_contents`.
508+ 3. The coroutine is executed after the `echo` statement.
509509
510510The `spawn` construct is available in two variations:
511- * `spawn function_call` - creates a coroutine from a callable expression
512- * `spawn closure_block` - creates a coroutine and defines a closure
511+ * `spawn function_call` - creates a coroutine from a callable expression
512+ * `spawn closure_block` - creates a coroutine and defines a closure
513513
514514<code php>
515515// Executing a known function
You can’t perform that action at this time.
0 commit comments