Convert node id to full redirect url in drupal

$link=url(drupal_get_path_alias('node/nodeid', array('absolute' => TRUE));
echo $link;

In above code node/nodeid need to be something like node/1 or so.

LEAVE A REPLY

Please enter your comment!
Please enter your name here