Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gianluca Zanferrari  >  AJAX to ISO  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example file
Class: AJAX to ISO
Convert UTF encoded text to ISO character set
Author: By
Last change:
Date: 2010-11-23 01:49
Size: 365 bytes
 

Contents

Class file image Download
<?php
require('class.ajax_to_iso.php');

$ajax2iso = new ajax_to_iso;

// string with special chars
$string 'ë ç Ë Ç € ä ö ü';

echo(
'<p>These are the chars before converting: ' $string '</p>');

$string $ajax2iso->to_iso($string);

// output de converted chars
echo('<p>These are the chars after converting: ' $string '</p>');
?>