PHP chr

alfa6661
- July 12, 2012
0 (0 votes)
Rate :
Konversi kode ascii menggunakan PHP

Fungsi chr() dalam PHP yaitu menghasilkan karakter yang spesifik berdasarkan kode ascii.

Syntax

chr(ascii)

Contoh :

<?php
echo chr(52)."<br />";
//Hasil : 4
echo chr(81)."<br />";
//Hasil : Q
echo chr(0x52)."<br />";
//Hasil : R
?>

Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter

– Eric S. Raymond

Have a better explanation?

If you have comments about this post. Please write your comments below

No comments associated with this article