Skip to content

Commit

Permalink
Update php-quiz.md (Ebazhanov#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer07793 authored Jul 27, 2020
1 parent 77db55f commit 8a6f11c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions php/php-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ PHP supports multiple types of loops. If you wanted to loop through a block of c


The ignore_user_abort( ) function sets whether a client disconnect should abort a script execution. In what scenario would you, as a web developer, use this function?
-You would use it to stop a user from clicking the back button if they decide not to view as a result of a click. //Maybe
-You would use it to stop a user from clicking the back button if they decide not to view as a result of a click. //Maybe
-You would use this function if you have some important processing to do and you do not want to stop it, even if your users click Cancel.
-You would use this function if you wanted to abort the script for all logged-in users, not just the one who disconnected.
-You would use this function if you want a PHP script to run forever.
-You would use this function if you wanted to abort the script for all logged-in users, not just the one who disconnected.
-You would use this function if you want a PHP script to run forever.

The PHP function array_reduce() takes a callback function that accepts a value carried over each iteration and the current item in the array, and reduces an array to a single value. Which code sample will sum and output the values in the provided array?
MAYBE-```
Expand Down Expand Up @@ -219,9 +219,9 @@ Which PHP script uses a constructor to display the string "Winter is almost over
How might you troubleshoot a "call to undefined function" error?

- Make sure you have imported the file containing the function.
-Make sure you have spelled the function name correctly.
-all of these answers
-Make sure the function declaration is at an earlier point in the code than the function call.
-Make sure you have spelled the function name correctly.
-all of these answers
-Make sure the function declaration is at an earlier point in the code than the function call.

Which line could you NOT use to comment out "Space: the final frontier"?

Expand Down

0 comments on commit 8a6f11c

Please sign in to comment.