PHP htmlspecialchars_decode() Function

By Editorial Staff in PHP Documentation. Updated on


htmlspecialchars_decode() function convert special HTML entities back to characters. This function is the opposite of htmlspecialchars(). It converts special HTML entities back to characters. Syntax: Reference: https://www.php.net/manual/en/function.htmlspecialchars-decode.php

PHP html_entity_decode() Function

By Editorial Staff in PHP Documentation. Updated on


PHP html_entity_decode() function convert HTML entities to their corresponding characters. html_entity_decode() is the opposite of htmlentities() in that it converts HTML entities in the string to their corresponding characters. Description: More precisely, this function decodes …

PHP trigger_error() Function

By Prem Tiwari in PHP Documentation. Updated on


The set_exception_handler() is an inbuilt function of PHP and is used to generates a user-level error/warning/notice message. It will returns FALSE if wrong error_type is specified, TRUE otherwise. PHP trigger_error() function example Example #1 trigger_error() function example Example #2 trigger_error() function …

PHP set_exception_handler() function

By Prem Tiwari in PHP Documentation. Updated on


The set_exception_handler() is an inbuilt function of PHP and is used to sets a user-defined exception handler function. It will returns the name of the previously defined exception handler, or NULL on error. If no previous …

PHP error_get_last() Function

By Prem Tiwari in PHP Documentation. Updated on


The error_get_last() is an inbuilt function of PHP and is used to return the last error that occurred in your program. Returns an associative array describing the last error with keys: type, message, file, and …

PHP array_key_first() Function

By Prem Tiwari in PHP Documentation. Updated on


The array_key_first() is an inbuilt function of PHP and is used to gets the first key of an array. You can get the first key from given array without affecting the internal array pointer. Syntax: …

PHP array_key_exists() Function

By Prem Tiwari in PHP Documentation. Updated on


The array_key_exists() is an inbuilt function of PHP and is used to checks if the given key or index exists in the array. array_key_exists() returns TRUE if the given key is set in the array. key can be any value possible …

PHP array_flip() Function

By Prem Tiwari in PHP Documentation. Updated on


The array_flip() is an inbuilt function of PHP and is used to exchanges all keys with their associated values in an array. array_flip() returns an array in flip order, i.e. keys from array become values and values from array become keys. array_flip() …

PHP | array_slice() Function

By Prem Tiwari in PHP Documentation. Updated on


array_slice() is an inbuilt function of PHP library and it is used to slice an array according tot the user needs. array_slice() — It returns the sequence of elements from the array array as specified …

New Global Constants in php 7

By Prem Tiwari in PHP Documentation. Updated on


Here is the list of New Global Constants in php 7. Below is the syntax how you can use PHP global variables inside your code. Examples to use PHP global variables Core Predefined Constants PHP_INT_MIN …

How to use a switch case ‘or’ in PHP?

By Prem Tiwari in PHP Documentation. Updated on


Problem: How to use a switch case ‘or’ in PHP? Solution: This can be achieved in 2 ways. PHP Switch case syntax Use the switch statement to select one of many blocks of code to be executed. …