View Single Post
Old 03-21-2010, 05:40 AM   #9 (permalink)
delayedinsanity
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

php Code:
foreach ( $_POST as $key => value )
    $_POST[$key] = my_sanitize( $value, $args );

extract( $_POST );

// or

foreach ( $_POST as $key => $value )
    ${$key} = my_sanitize( $value, $args );

No readability lost there. :) Not exactly the best use case example in the world, but in the end variable variables are just helpful shortcuts for those who like them.
delayedinsanity is offline  
Reply With Quote