User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 423,560 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,760 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting

errors since upgrade to php 5.2

Join Date: Apr 2008
Posts: 5
Reputation: raweiss is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
raweiss raweiss is offline Offline
Newbie Poster

Re: errors since upgrade to php 5.2

  #7  
Apr 22nd, 2008
Okay - I thought I had included the code in the first posting:

function clean_array ($array, $remove='submit') {
// global $remove;
$remove = array ('submit' => '');

if (is_array ($array)) {
$array = array_filter ($array, "strlen");
$array = array_filter ($array, "addslashes");
while (list ($key, $val) = each ($array)) {
if (!trim_array ($key, $remove)) {
$clean_array[$key] = $val;
}
}
return $clean_array;
} else {
return 0;
}
}

I'm not sure what more you are asking for.

Thanks for your quick responses!
Reply With Quote  
All times are GMT -4. The time now is 6:27 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC