Hello Brother,
I found your message, when I also finding about a function which can convert any type of text case to lower, but I also not found the thing for which i am searching.
so I have implemented a function which convert any type case either uppercase, titlecase, or any capital character between a word for example (Vinay, VINAY, viNAy), via using my this script you will get only text return in lowercase which will be 'vinay' only.
I think you can modify this script according to your need via using file handling methods in php.
Just open new text file in your editor copy and paste under mentioned script and save your file as lib.php
----------Script start here for lib.php-----
<?php
global $var,$upper,$lower,$i;
$var="A Apple hAs been eAted by A MAn<BR>";
$i=0;
echo $var;
function lowercase($var)
{
$upper=array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z");
$lower=array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z");
for($i=0;$i<27;$i++)
{
$var=strtr($var,$upper[$i],$lower[$i]);
}
return $var;
}
echo (lowercase($var));
?>
----------Script ends here for lib.php-----
Now open new text file in your editor copy and paste under mentioned script and save your file as test.php
---------Script starts here for test.php-----
<?php
include "lib.php";
$text="I Don't Want To Remove This type OF THE TEXT<BR>";
echo(lowercase($text));
?>
---------Script ends here for test.php-----
I think it will be helpfull for you. If you not found your solution in this script, then do mail to me i will try to solve to your problem.
Ok,Bye
Vinay Kumar
vinkrins@rediffmail.com