Sobes.tech

$filename = $_GET['file']; $content = file_get_contents("/var/www/files/" . $filename); echo $content;

Senior
147

class Cache { private static $data = []; public function set($key, $value) { self::$data[$key] = $value; } public function get($key) { return self::$data[$key] ?? null; } } $cacheA = new Cache(); $cacheA->set('user', 'Alice'); $cacheB = new Cache(); echo $cacheB->get('user'); // ?

Senior
146

Tell us about your work experience, technology stack, and projects.

Middle+
145

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."

145

How do you assess your SQL level? How do you find bottlenecks and optimize queries?

Middle+
145

What key projects can you highlight at your current workplace? What are you proud of?

142

What will this code output when using cache in Laravel? (question about two different cache instances)

Middle+
141

What are your salary expectations and willingness to work?

Middle+
139

What are interfaces, abstract classes, and traits — what are they and what is the difference?

137

Tell about your team work experience: process from task receipt to deployment, Git flow, testing, documentation.

Middle+
136

Tell about the team structure at your last workplace and the processes (code review, etc.).

Middle+
136

Tell us about the use of caching (Redis, Cache Lock) — why it was used, how it helped, especially in high-load projects.

Middle+
134

How is the facade pattern in Laravel implemented, which appears as static calls but works as regular objects?

Middle+
133
/67