Convert PHP array to object

It's any method to quick convert in PHP code array variables to object or object to array?
For example when select code like this

if (!isset($request['number'])) {
    header('HTTP/1.0 400 Bad Request');

click one shortcut to convert $request['number'] to $request->number

I know, this is possible with search&replace with regex, but I need quick method without writing regex in seach/replace fields.

1 comment
Comment actions Permalink , I guess

If quick fix is available it will be listed when you invoke Alt+Enter on element of interest / problematic place (e.g. on $request in this particular case)


Please sign in to leave a comment.