Следите за новинками
в нашем Telegram канале. Жми, чтобы подписаться:)
⊗ppOpFnGCP 54 of 107 menu
◀ ▶

Function for Getting Class Properties in OOP in PHP

get_class_vars

Create a Test class with public properties prop1 and prop2, as well as with private properties prop3 and prop4.

Call the get_class_vars function from outside the Test class. Output the array of available properties.

Call the get_class_vars function inside the Test class (for example, in the constructor). Output the array of available properties.

← →
↑
English▼
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline