It convert binary data into hexadecimal representation
Example
<?php
echo bin2hex(“phpcode”);
?>
Output
706870636f6465
It convert binary data into hexadecimal representation
Example
<?php
echo bin2hex(“phpcode”);
?>
Output
706870636f6465
It returns a string with backslashes in front of the specified characters
Example
<?php
echo addslashes(‘p/h”p{[^’);
?>
Output
p/h”p{[^
It returns a string with backslashes in front of the specified characters
Example
<?php
echo addcslashes(‘php{[^’, ‘A..z’);
?>
Output
php{[^
libxml2 is a software library for parsing XML documents. It is also the basis for the libxslt library which processes XSLT-1.0 stylesheets.
It disable libxml errors and allow user to fetch error information as needed
Example
<?php
libxml_use_internal_errors()
?>
It set the streams context for the next libxml document load or write
It changes the default external entity loader
It returns last error from libxml
Example
<?php
libxml_get_last_error()
?>
It returns array of errors
Example
<?php
libxml_get_errors()
?>
It disable the ability to load external entities
Example
<?php
libxml_disable_entity_loader()
?>