Created
June 16, 2015 22:08
-
-
Save akondas/48ce20ea6bf66827b224 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// proste zastosowanie | |
$username = $user->getName() ?? 'nobody'; | |
// dobre do tablic bo nie trzeba sprawdzać isset | |
$width = $imageData['width'] ?? 100; | |
// bardziej złożony przykład | |
$config = $config ?? $this->config ?? static::$defaultConfig; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment