Convert PHP var to array
I use this regex to quickly convert the class' variables into a string which is usable with the "function" array.
I copy-paste the varialbe name and use this regex.
Useful to convert all your variable and put it in the magic function __sleep(). After it, you can delete the variables you don't want.
Submitted by anonymous - 8 years ago