Dbase |
|
|
PHP |
|
|
MySQL |
|
|
*HTML |
|
|
JavaScript |
|
|
Networking |
|
|
Other |
|
|
|
|
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
|
|
|
|
|
Society
News |
DbaseProgrammers.com
is currently working on a new PHP admin and Dbase
admin for account administration |
|
|
|
|
|