This code snippet which can be added to Textmate as a command will convert PHP object variable instances to associative array variables (and vice versa).
For example it will convert :
$thevar->somevar->anothervar
to :
$thevar[’somevar’][’anothervar’];
This comes in handy while developing in PHP environments where both variable forms are used and if you mistakenly used the wrong form.
Here’s the code [...]











