php myAdmin mysql <? ?>

BROWSER-BASED * PHP5 SUPPORT * MYSQL 4.1 AND MYSQL 5.0 SUPPORT * OPEN SOURCE
PHP ve MySQL - En Yararlı Türkçe Kaynak
Kullanıcı Adınız : Kullanıcı Parolanız : Hatırla :    Kayıt   Şifremi Unuttum

Fonksiyonlar | Metin Düzenleme Fonksiyonları | html_entity_decode

Görüntüleme : 741

Açıklama
PHP 4 >=4.3.0 , PHP 5)
html_entity_decode -- htmlentities ile kodlanmış karakterlerin kodunu çözer
Kullanim
string html_entity_decode(string string [,alıntı_biçimi ] )
parametreler ve kullanımı htmlentities ile aynıdır sadece tersini yapar.
Örnek
html_entity_decode

<?
$orig 
"I'll \"walk\" the dog now"

$a htmlentities($orig); 

$b html_entity_decode($a); 

echo 
$a// I'll "walk" the dog now 

echo $b// I'll "walk" the dog now 

// php 4.3.0 dan önceki kulanıcılar aşağıdaki fonksiyonu kullanabilirler 
function unhtmlentities($string){ 
    
// replace numeric entities 
    
$string preg_replace('~&#x([0-9a-f]+);~ei''chr(hexdec("\\1"))'$string); 
    
$string preg_replace('~&#([0-9]+);~e''chr(\\1)'$string); 
    
// replace literal entities 
    
$trans_tbl get_html_translation_table(HTML_ENTITIES); 
    
$trans_tbl array_flip($trans_tbl); 
    return 
strtr($string$trans_tbl); 


$c unhtmlentities($a); 

echo 
$c// I'll "walk" the dog now 

?>

Ekleyen : ilyaz - Geliştirme Grubu Üyesi
Tarih : 00.06.12.2006.[
php mysql php oracle ajax apache xml cozumleri w3c xhtml w3c css JavaScript Object Notation
yetkili servis