this is the structure.
it returns a string with backslashes before characters that are listed in charlist parameter.
output:  \f\o\o\[ \]
charlist: All upper and lower-case letters ... but so will the [\]^_`
my output is ok but it showing this warning:
\f\o\o\[ \]
Warning: addcslashes(): Invalid '..'-range, '..'-range needs to be incrementing in
C:\xampp\htdocs\doha\dohaPHP\phpStrings\phpStrings.php on line 4
\zoo['\.']
the actual output: \zoo['\.']
WHY??? after adding a dot...
the structure is re added...
Outputs: Is your name O\'reilly?

it returns a string with backslashes before characters that need to be escaped.
output: f9

it returns an ASCII string containing the hexadecimal representation of str. The conversion is done byte-wise with the high-nibble first.
This function undoes it (converts back into ASCII).

<?php
function hex2asc($myin) {
for ($i=0; $i<strlen($myin)/2; $i++) {
$myout.=chr(base_convert(substr($myin,$i*2,2),16,10));
}
return $myout;
}
?>
//right spaces are eliminated
it eturns a one-character string containing the character specified by ascii.
github address link is added in this file...