PHP Classes

File: test_string_mapping.php

Recommend this page to a friend!
  Classes of Manuel Lemos   Generic string mapping class   test_string_mapping.php   Download  
File: test_string_mapping.php
Role: ???
Content type: text/plain
Description: Example script showing different types of mappings
Class: Generic string mapping class
Generic string mapping.
Author: By
Last change:
Date: 23 years ago
Size: 741 bytes
 

Contents

Class file image Download
<? /* * test_string_mapping.php * * @(#) $Header: /cvsroot/PHPlibrary/test_string_mapping.php,v 1.1 1999/07/23 02:12:47 mlemos Exp $ * */ require("string_mapping.php"); require("ISO-8859-1/strip_accents_mapping.php"); require("ISO-8859-1/upper_case_mapping.php"); require("ISO-8859-1/lower_case_mapping.php"); $string=($argc<2 ? "" : $argv[1]); $string_mapping=new string_mapping_class; echo "String - \"$string\"\n"; echo "Stripped accents and cedillas - \"".$string_mapping->Map($string,$strip_accents_mapping)."\"\n"; echo "To lower case - \"".$string_mapping->Map($string,$lower_case_mapping,"strtolower")."\"\n"; echo "To upper case - \"".$string_mapping->Map($string,$upper_case_mapping,"strtoupper")."\"\n"; ?>