How can I extract the first letter of the first name, the first letter of the last name, and the last letter?
And here's the example with your case:
First name: John
Last name: DOUNMINIC
Desired result: JDC
The corrected sentence would be:
I tried this code, but it doesn't work
And here's the example with your case:
First name: John
Last name: DOUNMINIC
Desired result: JDC
The corrected sentence would be:
I tried this code, but it doesn't work
PHP Code:
prenom= "John";
nom= "DOUNMINIC";
first_letter_prenom = LEFT(prenom, 1);
first_letter_nom = LEFT(nom, 1);
last_letter_nom = RIGHT(nom, 1);
someField = string\concatenate(first_letter_prenom, first_letter_nom, last_letter_nom); /
Comment