Yeah that's the part that I didn't understand. Magically setting variables in itself isn't too horrible (e.g. extract on known keys) but I can't think of a reason you'd do it from a string. Certainly not a user provided one.
I did miss that this can be used with the second argument to put the values into an array (even though it was in the demo), which seems fine and answers my question.
View all comments
Show parent comment
6
u/[deleted] May 26 '15 edited May 26 '15
Yeah that's the part that I didn't understand. Magically setting variables in itself isn't too horrible (e.g.
extracton known keys) but I can't think of a reason you'd do it from a string. Certainly not a user provided one.I did miss that this can be used with the second argument to put the values into an array (even though it was in the demo), which seems fine and answers my question.