How to combine two functions? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to combine two functions?

It is required to turn russian letters into latin and instead of spacebar between words make underscore. i used preg_replace and mb_strstr. Initial sentence f.e. Всем привет! Result to be: Vsem_privet! I could do this functions separately. How can i combine them?

3rd Oct 2018, 12:03 AM
Sophie S
Sophie S - avatar
1 Answer
0
Sophie S Attach your code URL with the Description part of the original post. Without seeing what you do people will find it hard to understand or even help. To attach code URL; open code in SoloLearn editor → tap share button on top right → copy to clipboard → edit original post → long press on Description text → select "Paste". * I'll delete this note after you add code URL. Thanks for understanding.
3rd Oct 2018, 4:17 PM
Ipang