Home | Help | Site Map | Mail    
TOP SITE:   Hostdebut.com Elite quality co-located virtual servers

Dbase
» Dbase SourceCode
» Dbase Inc.
» DbaseProgrammers
» Dbase News Groups
PHP
» PHP SourceCode
» Apache Software
» PHP
MySQL
» MySQL Help
» MySQL AB
*HTML
» Validate links
JavaScript
» JavaScript Help
Networking
» Windows commands
» Subnet Math
» Port Assignments
» Telnet connect
» Wireless
Other
» Find a Monster Job
» Find a Dbase Job
» Compare your Salary
» InfoSec Pros
» $9.99 domains
» NT0 Web-Hosting
» 
Cheap Flowers Web-Hosting

SourceCode for DbaseProgrammers.com

PHP UPPERCASE Variable. This is the PHP equivilaint to the dbase UPPER() function

//**************************************
// Author: Jeremy Martin
// PHP UPPERCASE Variable. The Dbase equivilaint of this function "UPPER()"
//
//**************************************
<?php
function upper($string) {
$len=strlen($string);
$i=0;
$last="";
$newstring="";
$string=strtoupper($string);
while ($i<$len):
$char=substr($string,$i,1);
if (ereg("[A-Z]",$last)):
$new.=strtolower($char);
else:
$new.=strtoupper($char);
endif;
$last=$char;
$i++;
endwhile;
return($newstring);
};
?>


PHP OpenSource | Dbase OpenSource | MySQL Help | Home | Contact

The code of the week
Members Area
Society News
DbaseProgrammers.com is currently working on a new PHP admin and Dbase admin for account administration
More Links
 
Whitepapers
ServerWatch
SQL Class
ICANN
IANA
RFC
W3C
Internet.com
NSA-SNAC
Foxnews
  Copyright DbaseProgrammers.com Aug. 2003