-
-
Save cursosdesarrolloweb/1964f5159fba55e10a68a9e3d0ff9da4 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 | |
class User { | |
public function __construct( | |
public mixed $user, | |
) {} | |
} | |
$userArray = new User(["Israel", 39]); | |
$userClass = new User(new class { public string $name = "Israel"; public int $age = 39; }); | |
function getUsername(): mixed { | |
return "cursosdesarrolloweb"; | |
} | |
echo getUsername(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment