bin2hex() Function:
bin2hex() function is use to convert the ascii character value of a string into hexadecimal value. The string can b reconvert by using packk() functionsyntax:
bin2hex(string)Example:
<?php
$str= “hello I am using programminglogic”;
echo bin2hex($str);?>
Output:
$str= “hello I am using programminglogic”;
68656c6c6f204920616d207573696e672070726f6772616d6d696e676c6f676963
0 comments:
Post a Comment