I have strings like,
$a = 'helloMister';
$b = 'doggyWaltz';
$c = 'bumWipe';
$d = 'pinkNips';
How can I explode at the capital letters, search on google for some time and came back with nothing!
Thanks.
解决:
If you want to split helloMister into hello and Mister you can use preg_split to split the string at a point just before the uppercase letter
Do not store password as plain text
Do not try to invent your own password security
Do not ‘encrypt’ passwords
Do not use MD5
Do not use a single site-wide salt
What you should do
Use a cryptographically strong hashing function like bcrypt (see PHP’s crypt() function).
Use a random salt for each password.
Use a slow hashing algorithm to make brute force