Saturday 26 July 2014

Filled Under:

bin2hex() Function in php:

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() function

syntax:

          bin2hex(string)

Example:

<?php
$str= “hello I am using programminglogic”;
echo bin2hex($str);?>

Output:
68656c6c6f204920616d207573696e672070726f6772616d6d696e676c6f676963




0 comments:

Post a Comment