The introspection functions are rarely used when building a stylesheet. However, they are valuable if something does not work properly - to figure out what's going on: like debugging functions. The following table lists all introspection functions in Sass: FunctionDescription & Examplecall(function, arguments...)Calls a function with arguments, and returns the result.content-exists()Checks whether the current mixin was passed a @content block.feature-exists(feature)Checks whether feature is supported by the current Sass implementation. Example: Example: Example: Example: Example: Example: Example: Example: The term PHP is an acronym for PHP: Hypertext Preprocessor. PHP is a server-side scripting language designed specifically for web development. It is open-source which means it is free to download and use. It is very simple to learn and use. The files have the extension “.php”. Rasmus Lerdorf inspired the first version of PHP and participated in the later versions. It is an interpreted language and it does not require a compiler. PHP | Reflection getModifierNames() Function Improve Article Save Article Like Article
Improve Article Save Article The Reflection::getModifierNames() function is an inbuilt function in PHP which is used to return an array of the specified modifier names. Syntax: array Reflection::getModifierNames( int $modifiers ) Parameters: This function accepts single parameter $modifiers which is Bitfield of the modifiers. Here the bitfield is a data structure consisting of a number of adjacent computer memory locations. php
public static0
public static2
public static4 public static5 public static6 public static7
final public0 final public1 final public2
final public4 final public4
final public6 final public7 final public8 final public9 <?php 0 <?php 1<?php 2<?php 3<?php 4<?php 5
final public8 // Declaring a class Testing 3
Output: public static
Program 2: php
public static2
public static4 public static6 class 9
final public0 final public1 final public2
final public4 final public4
final public6
final public9 <?php 0 <?php 1<?php 2<?php 3{ 6<?php 5
Output: final public
Reference: https://www.php.net/manual/en/reflection.getmodifiernames.php My Personal Notes arrow_drop_up Save Please Login to comment... |