hi all,

what is the problem with this code ?

function menufun_hello($first_name = '',$last_name ='') {
return t('Hello! @first_name @last_name',
array('@first_name => $first_name,'@last_name' =>$last_name));
}

when I save it I cant enter to my site ,it become a blank page !,but when I remove it every thing become ok !

Comments

nevets’s picture

Probably because you are missing a single quote in array('@first_name.

mpapet’s picture

FYI: PHP errors show up in apache error logs if you have them configured for the site.

life shadows’s picture

thanks all I configured my mistak