There are tons of good papers about designing and developing for security (and even a bunch of posts on SO), but all of them seem to concentrate on what you should do.
I have an array: $array = array( \'key1\' => \'value1\', \'key2\' => \'value2\', \'key3\' => \'value3\',