How to get a "node" value from URL using arg(0)? I have this problem in getting a value from URL.

First I've created an url alias for a certain articles.

In example, from this /node/899 the alias I've created it's /news/investments/899

Then when I use arg(0) which is to get the value of first parameter which is "news" I get a result "node". The url alias works.
You can get aliased path using drupal_get_path_alias API Function..

$alias_path = drupal_get_path_alias();
$alias_arguments =  explode('/', $alias_path);
print $alias_arguments[0];