i'm still a freshman on PHP. So i have a variable called 'full name' and i was trying to explode and implode the first and the last variable value.
$fullname='Andre Filipe da Costa Ferreira';
$namepieces=explode('', $fullname);
$flname=implode('', namepieces[0], namepieces[lastvar]);
echo "Welcome".$flname;
I would appreciate if someone could help me! Thanks :D
$
in front ofnamepieces
on line 3; otherwise - what is the issue that you're having? Do you get an error message? A blank screen? The wrong data? – andrewsi Nov 29 '13 at 18:14