I already have a function where it performs the conversion of strings to slug .
Below I will give examples for facilitation in understanding my question.
3 examples before conversion:
link para uma página
link página
link
3 examples after conversion:
link-para-uma-pagina
link-pagina
link
So far so good, I've always used this function without major problems. But now I've found the need to use the CamelCase format starting from the slug that I have.
I know there are plenty of possibilities to do this, so I'm here to get the best response possible.
One detail is that it would be a "almost" CamelCase, because regardless of the string, I need the first character to always be in lowercase.
3 examples after the slug conversion to the "almost" CamelCase:
linkParaUmaPagina
linkPagina
link