Toko baju super murah

www.bajusupermurah.com menjual pakaian berkwalitas dan termurah

[php code] convert string to ascii


gara” mau bikin macro keyboard tapi males bikin satu” jadi minta bantuan php 🙂

ini simple code untuk convert string to ascii

 

<?php


function string_to_ascii($str)
{
  for ($i = 0, $j = strlen($str); $i < $j; $i++) {
    $string[] = ord($str{$i});
  }
  return $string;
}


foreach(string_to_ascii('Snowrex') as $b)echo $b."<br>";


?>
Iklan

9 Oktober 2013 - Posted by | Cuap cuap

Belum ada komentar.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: