Last active
August 26, 2019 13:51
-
-
Save brzuchal/94836a80a758053818353bfd9eeb8e29 to your computer and use it in GitHub Desktop.
Data type PHP
This file contains hidden or 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 | |
data Foo { | |
var string $foo; // if not set then uninitialized | |
var bool $bar = false; | |
} | |
$foo = new Foo | |
{ | |
foo: "baz", | |
bar: true | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment