Using this question, I'm experimenting with substr and strrpos and just cannot seem to get it right.
I have a name column coming from a MySQL database that contains both first and last name like this:
Doe, Jane A
The existing PHP echo looks like:
<?php echo($row_WADACustomerInfo['BillingName']); ?>
How do I strip the BillingName to only show Jane (firstname)?
list($surname, $forename) = explode(',', $row_WADACustomerInfo['BillingName']);would be a good starting point