Росэлторг interview
Questions15
What is the output of the following code? <?php $g = range(5,8); $h = array("a", "b", "c", "e"); for($i = 0; $i < count($g); $i++) { foreach ($h as $j) { echo $i.$j; break; } }
What is the output of the following code? <?php function format(&$item) { $item = strtoupper($item) . '.'; return $item; } $shopping = array("fish", "bread", "eggs", "jelly", "apples"); array_walk($shopping, "format"); $shopping = sort($shopping); echo $shopping[1]; A "BREAD." B nothing (no output) C "apples" D "fish" E "APPLES."
How to handle both Error and Exception in try-catch? What is Throwable? What is the difference between Error and Exception?
12 more questions from this interview
A subscription opens every question, and Copilot suggests answers live during your Росэлторг interview.
Sign in to unlockSummarized questions based on candidates' accounts. These materials do not represent the official position of the companies and do not disclose internal processes. If you believe a publication violates your rights — contact us.