[PHP] fullname
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
Re: [PHP] fullname
Is this easier for you? $fullname = $session[f_name]. .$session[l_name]; - Original Message - From: Mantas Kriauciunas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 30 July, 2002 7:11 PM Subject: [PHP] fullname Hey php-general, is there some other easyer way to do in one line than this?: $fullname .= ; $fullname .= 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] fullname
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]; CYA, Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] fullname
on 30/07/02 5:12 PM, Wee Keat ([EMAIL PROTECTED]) wrote: Is this easier for you? $fullname = $session[f_name]. .$session[l_name]; or $fullname = {$session['f_name']} {$session['l_name']}; Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] fullname
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