In article <001301c23799$2deb3b30$100a0a0a@skink>,
 [EMAIL PROTECTED] (David Freeman) wrote:

>  >   is there some other easyer way to do in one line than this?:
>  > 
>  > $fullname = $session["f_name"];
>  > $fullname .= " ";
>  > $fullname .= $session["l_name"];  
> 
> $fullname = $session["f_name"] . " " . $session["l_name"];

...or *if* f_name and l_name are guaranteed to be the only elements of 
array $session *and* they're in the needed order, you could do:

$fullname=implode(" ", $session);

But that requires the proper foreknowledge.  Simple concatenation, like 
above, is the safer bet.

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to