PHP: Get the PHP extension name of a class by the class name
$class_name = 'DOMDocument'; $class = new ReflectionClass($class_name); $extension = $class->getExtension(); echo $extension;
$class_name = 'DOMDocument'; $class = new ReflectionClass($class_name); $extension = $class->getExtension(); echo $extension;
$extension_name = 'dom'; $extension = new ReflectionExtension($extension_name); print_r($extension->getFunctions()); print_r($extension->getClassNames());
$function_name = 'imagecreate'; $class = new ReflectionFunction($function_name); $extension = $class->getExtension(); echo $extension;
Cloudflare Registrar securely registers and manages your domain names with transparent, no-markup pricing(net stock price) that eliminates surprise renewal fees and hidden add-on charges. You pay what we pay — you won’t find better value.
This list is in US Dollars.
(more…)The rel attribute specifies the relationship between the current document and the linked document. Search engines can use this attribute to get more information about a link. rel Attribute Values…
The following PHP function will help you easily convert IPv4(IP address version 4) to IPv6(IP address version 6). The function will return false if the provided IP address is invalid…
Below is a snippet of the code and usage guide. PHP Function function colourBrightness($hex, $percent) { // Work out if hash given $hash = ''; if (stristr($hex, '#')) { $hex…
Let say you have a table called "my_table" with an auto-increment column called "id" and you want the id column to start counting from 1,2,3,... then use the following SQL…
// Gets the current store’s details $store = Mage::app()->getStore(); // Gets the current store’s id $storeId = Mage::app()->getStore()->getStoreId(); // Gets the current store’s code $storeCode = Mage::app()->getStore()->getCode(); // Gets the…
What are the differences between git pull and git fetch? Answer: In the simplest terms, git pull does a git fetch followed by a git merge. You can do a…