Surround with PHP function


Is there a way to surround with a php function? Example:

echo $database_row['some_field'];

place cursor on the variable (or highlight entire variable), press a "surround with function" shortcut, start typing "html" and select "htmlspecialchars" from the normal autocomplete popup. result is:

echo htmlspecialchars($database_row['some_field']);

Trying to invoke the existing surround with shortcut doesn't do anything in this case.

Shall I file a feature request?


1 comment
Comment actions Permalink

You should file a feature request. The most close feature request in BTS is:


Please sign in to leave a comment.