PHP bin2hex()


Back to php.


thibault    (2009-04-09)

thibault

PHP bin2hex()

This function converts a binary string into an hexadecimal one.

string bin2hex (string $string)


See also the pack() and unpack() functions.

If the function does not exist, you may imitate it :

<?php

if (!function_exists('bin2hex'))
{
    function bin2hex($string)
    {
        $result = '';
        for($i =0; $i < strlen($string); $i++)
        {
            $result .= dechex(ord($string[$i]));
        }
        return $result;
    }
}

?>



See also


ficgs
More websites

You must register to see these links, as this is a collaborative page, then you may change the order of the links by clicking the icons before the titles.



admin
Other websites

The following links might be less relevant, please change their ranks if you find them useful.


 Javascript equivalent for PHP's bin2hex
kevin.vanzonneveld > techblog/article/javascript equivalent for

 Source of PHP's bin2hex command? [Archive] - CodingForums.com
codingforums > archive/index.

You asked for it, you get it: The source of bin2hex(): /* {{{...

 PhpDig.net - PHP - bin2hex
phpdig > ref/rn58re1154

and is designed to provide information about the PHP programming...
converts a string of ASCII characters to their...

 PHP: bin2hex - dokumentacja PHP: bin2hex - bin2hex
php manual.skryptoteka > function.bin2hex

Returns an ASCII string containing the hexadecimal...
Returns the hexadecimal representation of the given...

  * 函数 - 用法|在线手册|属性|方法
fzs8

 /lang/javascript/p2js/trunk/src/php.bin2hex.js – CodeRepos::Share – Trac
coderepos > share/browser/lang/javascript/p2js/trunk/src

 php php php: php - bin2hex function
phpphpphp.blogspot > 2007/01

 Rails for PHP Developers - Reference for PHP bin2hex in Ruby
railsforphp > reference/strings/bin2hex

Are you a PHP developer interested in the Ruby on Rails...
Looking for Rails or PHP web application development,...

 bin2hex in PHP description
function > in

 PHP: bin2hex - Manual
php.nusa.net > manual/en/function.bin2hex.

 PHP : bin2hex - Convert binary data into hexadecimal representation
thaicreate

Returns an ASCII string containing the hexadecimal...
Returns the hexadecimal representation of the given...

 HOWTO: SHA1withRSA Digital Signing in PHP - Mark S. Kolich
mark.kolich > 2009/03/howto using sha1withrsa signing in

 Manuel PHP - bin2hex - La référence en Cours et Manuels PHP / MYSQL / HTML en francais
manuelphp

 lude_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc'; manual_setup(array( 'head' => array('ISO-8859-9', 'tr'), 'home' => array('inde...
mirrors.ukfast > sites

 PEAR NEWS :: Manuals :: PHP :: bin2hex
pear news > manuals

 SuperTráfego.com | Glossário e Tabela de Funções PHP - bin2hex ( )
supertrafego

você poderá localizar todos os comandos e funções do PHP,...

 G-chan Square - [PHP] bin2hexの逆変換
g chan.dip > square/archives/2008/08/bin2hex

上記URLにあるものを利用しています。...

 phparadise | php code | manual for bin2hex
fundisom

 PHP Bugs: #26702: bin2hex compare with HEX value that equals DEC value of HEX of bin returns true
bugs.php > bug.

 virtualserver.us - PHP / bin2hex
virtualserver > us/de/manuals

 Free List of Articles
redoso > ?do=disp&itemid=29

redoso, write, whatever, you, want, blogs, mind, freely,...

 WeberDev.com -> PHP Manual -> Convert binary data into hexadecimal representation
weberdev > Manuals

Returns an ASCII string containing the hexadecimal representation...

 PHP bin2hex | Bits of Wisdom
kuplen > 2008/10

Vuln: IBM Lotus Mobile Connect Unspecified Cross Site Scripting...
Vuln: Pidgin MSN Use-After-Free Denial of Service...
Bugtraq: Multiple Vulnerabilities in OpenClassifieds...

 Turning MySQL data in latin1 to utf8 utf-8 - O'Reilly ONLamp Blog
oreillynet > onlamp/blog/2006/01/turning mysql data in latin1 t

(compare the string and its hex result from MySQL with the...
The iPhone SDK: APIs Apple Didn't Want You to Know...
Seems the inelegant-but-permissible solution to sending utf8 email...

 初心者向けPHPナビ - PHP - bin2hex
9fd.blog92.fc2 > blog entry 135

任意の文字列の16進数表現文字列を取得します。...
a4a2 a4a4 30 39 と、表示されます。...

 PHP - bin2hex - String-Funktionen
selfphp > funktionsreferenz/string funktionen/bin2hex.

Alles bis auf a-z, A-Z, 0-9 und dem Leerzeichen aus einem String...
Hosting und Webdesign aus einer Hand von der GERWAN GmbH:...

 LAMP (Linux / Apache / MySQL / PHP) Development Blog by Brad Dierking
bradino > search

URL Multiple Query Parameters Encoded with HTML Entities...
Pass Extra Parameters to JavaScript Callback Function...

 bin2hex | Links Back SEO
linksback > video training tutorials

Make sure to add a Reciprocal link before submitting or your site...

 PHP Editor Review - Php Manual Function bin2hex
php editors

 bin2hex ? Freeware Download - CGI/PERL, Miscellaneous - bin2hex is Unix compatible
sourcecodeonline > details/bin2hex

Porting of some (little) PHP functions consists of a collection of...
All files and free downloads are copyright of their respective...

 Funkcje PHP Funkcja PHP - *
funkcje > view/3/1/288/index

Prosta i tania reklama w Internecie sprzedawana za pomocą...
Wszystkie pytania prosimy kierować właśnie tam ponieważ...

 fonction * avec bouts de codes sources
phpsources > function.bin2hex.

Convertit des données binaires en représentation...

 * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt...
framework.zend > svn/framework/standard/trunk/tests/Zend/OpenIdTest.

 PHP: bin2hex - Manual
algorytmy > doc

Portrety Uliczne Nieznajomych - zobacz wyjątkową galerię...
zaznacz działy do przeszukania (brak wyboru = wszystkie...
Prawdziwa skarbnica wiedzy na temat tworzenia stron WWW i nie...



Response  
 

Guest name   (option)     Register
Please sum : 7611 + two  




Trackbacks : If you talked about this article in your blog or website, you may instantly get a backlink 
There's no trackback at the moment.