function h_title(&arg(1)){$node = node_load(arg(1)); $ntitle = $node->title; return $ntitle;}

plz any help......

Comments

mohamedali’s picture

no one to help????????

marcvangend’s picture

Are you seriously bumping your post after only 4 minutes? Maybe you want to have a look at this page: http://drupal.org/forum-posting#crosspost.

Anyway, your function looks like a complicated way to do something simple. Can you explain what you're trying to do?

advseb’s picture

The parameter list looks very wrong. Take a look at the PHP documentation to see how to define a signature.

dman’s picture

You have too many ?? and !! in this post. That's your main problem

rogerpfaff’s picture

function h_title(&arg(1)) {
  $node = node_load(arg(1));
  $ntitle = $node->title;
  return $ntitle;
}

you're using the function arg() as a referenced parameter and this is not a parameter usable at all. There should be only a variable like $pathargument or something representative. Later you are using the function again where you want the function parameter.

I would like me preposters before suggest some nice php documentation. http://www.php.net/manual/de/functions.arguments.php

avpaderno’s picture

Like already stated, the function parameter is wrong; it cannot be the value returned from a function. There is no programming language that would accept such function definition.
Then, for what the function code is, the function does not require a parameter at all.

Also, avoid using so much exclamation points; it seems you are screaming to the others.