cvs: pear /I18N/examples I18N_Negotiator.php

From: Date: Mon, 25 Feb 2002 09:25:46 +0000
Subject: cvs: pear /I18N/examples I18N_Negotiator.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-2611@lists.php.net to get a copy of this message
cain Mon Feb 25 04:25:46 2002 EDT Added files: /pear/I18N/examples I18N_Negotiator.php Log: - check in first example Index: pear/I18N/examples/I18N_Negotiator.php +++ pear/I18N/examples/I18N_Negotiator.php <?php /** * * test of I18N_Negotiator * */ print 'TEST I18N_Negotiator<br><br>'; require_once( 'I18N/Negotiator.php' ); $neg = new I18N_Negotiator; $execute = array(); $execute[] = '$lang = $neg->getLanguageMatch()'; $execute[] = '$country = $neg->getCountryMatch($lang)'; $execute[] = '$neg->getVariantInfo($lang)'; $execute[] = '$neg->getCharsetMatch()'; $execute[] = '$neg->getCountryName($country)'; $execute[] = '$neg->getLanguageName($lang)'; echo '<table border="1">'; foreach( $execute as $aExecute ) { eval('$result='.$aExecute.';'); print "<tr><td>$aExecute </td><td> $result</td></tr>"; } echo '</table>'; ?>

« previous php.pear.cvs (#2611) next »