How can we find nid from node internal path?

    We can find nid from node internal path by using following function $node = menu_get_object(); We can specify the path by using following syntax
    <?php
    menu_get_object
    ($type = 'node', $position = 1, $path = '/student/2010/testing');
    ?>
    0