The restoreBasicEntities function is a built-in PHP function that restores certain basic entities such as &, <, >, and " found in a string to their original characters.
One example of using this function is when dealing with HTML entities in a string. HTML entities are special characters that are encoded in HTML markup, and when displayed in a web browser, they appear as their corresponding symbols or characters. However, when working with string manipulation in PHP, it may be necessary to convert these entities back to their original characters in order to properly perform operations on the string. The restoreBasicEntities function can be used to accomplish this.
This function is a part of the PHP Standard Library.
PHP String::restoreBasicEntities - 30 examples found. These are the top rated real world PHP examples of String::restoreBasicEntities from package spaghettiphp extracted from open source projects. You can rate examples to help us improve the quality of examples.