|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2006-01-19 09:12 UTC] email at steffenweber dot net
 Description: ------------ As I trim() nearly all string inputs it would be very useful if there was a TRIM flag for the $filter_options parameter when sanitzing a string. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 09:00:01 2025 UTC | 
In most case, most people need to trim STRING inputs. In now days, we must trim $_POST like this <?php function trim_value(&$value){ $value = trim($value); } array_walk_recursive($_POST,'trim_value'); ?> I think we can write less code and get better performance, while do this job with filter extension. hope you can understand i means, and sorry for my poor english :)