update page now

ReflectionClass::getExtension

(PHP 5, PHP 7, PHP 8)

ReflectionClass::getExtensionSınıfı tanımlayan eklenti için bir ReflectionExtension örneği döndürür

Açıklama

public ReflectionClass::getExtension(): ?ReflectionExtension

Sınıfı tanımlayan eklenti için bir ReflectionExtension örneği döndürür.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

Sınıfı tanımlayan eklenti için bir ReflectionExtension örneği veya kullanıcı tanımlı sınıflar için null döner.

Örnekler

Örnek 1 - ReflectionClass::getExtension() örneği

<?php
$class
= new ReflectionClass('ReflectionClass');
$extension = $class->getExtension();
var_dump($extension);
?>

Yukarıdaki örneğin çıktısı:

object(ReflectionExtension)#2 (1) {
  ["name"]=>
  string(10) "Reflection"
}

Ayrıca Bakınız

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant