Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Hvad er bedst ift. codestyle og forståelse af koden
- // 1.
- if (array_key_exists('class', $item) && !in_array('active', $item['class'])) {}
- // 2.
- if (!in_array('active', $item['class'] ?? [])) {}
Add Comment
Please, Sign In to add comment