Git Rename a local branchRenaming local git branch:I sometimes use this when an issue number of pull requests is wrong.In the case of changing current branch, it is easier. Just specify new branch name:10August 2, 2016PHP Normalize newlines; for example, convert all CRLF, CR, and LF to LFThis very simple PHP function normalizes and converts newline characters to CRLF, CR or LF.Here's a test code showing how the function works:The result will be like:00August 1, 2016One-line PHP random string/password generatorThis post introduces six ways to generate random strings and passwords in PHP. By using sha256 algorithm, maximum length becomes 48 characters.00July 31, 2016Hello World in PHP00July 31, 2016