rythemton your script unfortunately didnt work. I have this error
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\index.php on line 52
dragon_sa yours worked but only one string worked. there was an error after the first string.
Fatal error: Cannot redeclare splitByCaps() (previously declared in C:\xampp\htdocs\index.php:51) in C:\xampp\htdocs\index.php on line 51
my code is:
while(odbc_fetch_row($sqlresult_products))
{
echo "<tr>";
echo "<td><font size=1 face=verdana><b>";
$string = substr($phpresult_vendors,9,-9);
function splitByCaps($string){
return preg_replace('/([a-z0-9])?([A-Z])/','$1 $2',$string);
}
echo splitByCaps($string);
for the purpose of understanding the above script a bit better $phpresult_vendors are 'Products_IngramMicro_Products' 'Products_ExpressData_Products' 'Products_TheAmazingCompany_Products" etc.