03-21-2010, 05:40 AM
|
#9 (permalink)
|
|
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
|
php Code:
foreach ( $_POST as $key => value ) $_POST[ $key] = my_sanitize ( $value, $args ); extract( $_POST ); // orforeach ( $_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.
|
|
|
|