PHP: Make first letter capital in list?

fullercattle

New Member
As i have this:\[code\]$full_name = $data['full_name'];list($firstname, $lastname) = explode(' ', $_POST['full_name']);\[/code\](after this comes a query where it inserts \[code\]$lastname\[/code\] and \[code\]$firstname\[/code\])Where should i use \[code\]ucfirst()\[/code\] ?Should i just make new variables again?\[code\]$newfirstname = ucfirst($firstname);$newlastname = ucfirst($lastname);\[/code\]or can i integrate ucfirst somehow somewhere in the code at top?
 
Back
Top