PHP br2nl function

This item was filled under [ Code Snippet, PHP ]

Fungsi br2nl adalah kebalikan dari nl2br (bawaan fungsi dari PHP).
berikut code fungsi php nya:

<?php
function br2nl($jin_text) {
    return  preg_replace("/<br\\s*?\/??>/i", "\n", $jin_text);
}
?>

semoga bermanfaat :mrgreen:

Rate this topic:
1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 4.80 out of 5)
Loading ... Loading ...
Popularity: 1,867 views
Tagged with: [ , ]
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Artikel Sejenis

Leave a Comment

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Halaman ini di eksekusi dalam waktu 1.339 detik! (koneksi mayan bagus nih...)