Run function with drush in drupal 7 with drush php-eval

This is quite a nice feature to run database operations on your website. Found some wrong implementations so I thought I'd share it here.

drush php-eval 'my_function_name();'

 

 

Saved you some valuable time?

Buy me a drink 🍺 to keep me motivated to create free content like this!