PHP Random Password Generator

Php random password generator with custom string length and strength.. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 function generatePassword($length=9, $strength=0) { $vowels = ‘aeuy’; […]

Removing new line \n from string..

Sometimes the invisible new line character breaks the code, specially when we are using some javascript. I had a recent experience when using wz_tooltip extension to create good tooltips and I realized that the newline character [\n] breaks the tooltip widget. You can easily remove these and replace them with by following code.. 1 2 […]