- strtoupper: documentation ( source)
<?php
class GetInfo {
public $name;
function __construct($name) {
$this->name = $name;
$name = strtoupper($name);
return $name . ' is my name';
}
}
echo new GetInfo('Ivan');
//echo $a->__construct('Ivan');