PHP 8.5.0 Alpha 4 available for testing

Voting

: min(nine, three)?
(Example: nine)

The Note You're Voting On

php-net at gander dot pl
3 years ago
You can also access private data:

<?php
class Value {
private
$value;

public function
__construct($value) {
$this->value = $value;
}
}

$foo = new Value('Foo');
$bar = new Value('Bar');

$closure = function () { var_dump($this->value); };
$closure->call($foo);
$closure->call($bar);
?>

Output:
string(3) "Foo"
string(3) "Bar"

<< Back to user notes page

To Top