(PHP 7)
ReflectionType::__toString — To string
Bu işlevin kullanımı PHP 7.1.0 itibariyle ÖNERİLMEMEKTEDİR. Bu işleve kesinlikle güvenilmemelidir.
Gets the parameter type name.
Bu işlevin değiştirgesi yoktur.
Returns the type of the parameter.
Örnek 1 ReflectionType::__toString() example
<?php
function someFunction(string $param) {}
$reflectionFunc = new ReflectionFunction('someFunction');
$reflectionParam = $reflectionFunc->getParameters()[0];
echo $reflectionParam->getType();
Yukarıdaki örnek şuna benzer bir çıktı üretir:
string
Sürüm: | Açıklama |
---|---|
7.1.0 | ReflectionType::__toString() has been deprecated. |