This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Escapes scalar values deeply | |
| * | |
| * Examples: | |
| * <code> | |
| * var_export(mysql_real_escape_string_deep(1)); | |
| * // outputs '1' | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Checks if an email is a valid RFC 2822 email address | |
| * | |
| * Examples: | |
| * <code> | |
| * <?php | |
| * validate_email('dev@felds.com.br'); // returns true | |
| * validate_email('Felds Liscia <dev@felds.com.br>'); // returns false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Setting the document header | |
| header('content-type: application/xml; charset=UTF-8'); | |
| // Instantiating a new DomDoc obj. | |
| $xml = new DomDocument('1.0','UTF-8'); | |
| $xml->formatOutput = true; | |
| // Creating a root element and assigning it to $xmlRoot variable |
NewerOlder