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 | |
/** | |
* Adds support for | |
* {comm} | |
* Multiline comment block | |
* {/comm} | |
* and {lcomm}inline comment{/lcomm}. | |
* | |
* Comments will be ignored in page output. |
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 | |
declare(strict_types=1); | |
// vše je pouze pseudokód, jde jen o ukázku | |
Book extends ORM\Entity | |
{ | |
/** | |
* @PrimaryKey |
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
How to change umask for apache on Mac: | |
$ sudo vim /System/Library/LaunchDaemons/org.apache.httpd.plist | |
add | |
<key>Umask</key> | |
<integer>002</integer> | |
in <dict> section | |
$ sudo apachectl stop |
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 | |
// No strict type here... | |
require_once __DIR__ . '/strict.php'; | |
function foo(/* int */ $input) { // ..so adding type definition is safe, isn't it? | |
printf("param=%d\n", $input); | |
} |