WordPress\AiClientDependencies\Psr\Http\Message
StreamInterface::getMetadata
Get stream metadata as an associative array or retrieve a specific key.
The keys returned are identical to the keys returned from PHP's stream_get_meta_data() function.
Метод класса: StreamInterface{}
Хуков нет.
Возвращает
array|mixed|null. Returns an associative array if no key is
provided. Returns a specific key value if a key is provided and the value is found, or null if the key is not found.
Использование
$StreamInterface = new StreamInterface(); $StreamInterface->getMetadata( ?string $key );
- ?string $key
- .
По умолчанию:null
Код StreamInterface::getMetadata() StreamInterface::getMetadata WP 7.1.2
public function getMetadata(?string $key = null);