Re: fullname

From: Date: Tue, 30 Jul 2002 15:09:49 +0000
Subject: Re: fullname
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-110348@lists.php.net to get a copy of this message
Sveix. I guess if the space or any other character is needed between MORE than TWO strings, this is a good construction: $fullname = join(" ", array($session["f_name"], $session["l_name"],$session["middle_name"], ...)); P.S. I sometimes use this construct for generating sql statements "Mantas Kriauciunas" <Mantuks@attbi.com> wrote in message news:16055893108.20020730021116@attbi.com... > Hey php-general, > > is there some other easyer way to do in one line than this?: > > $fullname = $session["f_name"]; > $fullname .= " "; > $fullname .= $session["l_name"]; > > P.S the thing is to add line in the middle of the first and last names > :) > > Thanks > -- > Best regards, > Mantas > > Contacts: > Mantuks@attbi.com >

« previous php.general (#110348) next »