Get view machine name programmatically I am using a code

&lt;?php
print $view-&gt;display['view_machine_name']-&gt;handler-&gt;options['title'];
?&gt;


I put machine name in view_machine_name and everything work but I have few displays with different machine names and in other cases I still print same title. Can I get a function which takes the view machine name?
You can try views_get_page_view() function, Which return Views object and you can get current views name on  $views_page-&gt;name