Pogledajte određenu poruku
Staro 14. 02. 2011.   #3
webarto
expert
Grand Master
 
Avatar webarto
 
Datum učlanjenja: 11.04.2010
Poruke: 998
Hvala: 141
959 "Hvala" u 153 poruka
webarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished road
Default

PHP kôd:
$string "!\"#$%&'()";

function 
strhex($string){
    for(
$i 0$i strlen($string); $i++){
        
$hex unpack('H*'substr($string$i1));
        
$return .= $hex[1]." ";
    }
return 
$return;
}

echo 
strhex($string); // 21 22 23 24 25 26 27 28 29 
Odgovorio sam ti na DZ.

Tip: pređi na Ruby
webarto je offline