I have an array of names. Some names have upper case as first letter, some have space between first name and last name. It looks like this:
array(
0 => janet,
1 => John Smith,
2 => Fred,
3 => joe-hooker
)
I want everything in lowercase. If there's a space between first/last name, change the space to "-" .
How to do it in php language? Thanks!