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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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:
> [EMAIL PROTECTED]
>



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

Reply via email to