The code above would generate an error. You don't need the brackets after $value. What error are you getting?