Archive

- Posts Tagged ‘string’

JavaScript: Strip HTML, and get UpperCase and LowerCase words

I was looking for getting all words in uppercase in HTML text using Regex. After solving through Googling and trial and error, I thought to extend the code to return all lowercase words too. <!--Actually I was helping someone on forum and there the question was only for capturing Upper… (Continue)

Few very common String Functions in PHP

Here are few very common string functions in PHP for those who are new to PHP.  In that case just familiarize with these functions. addslashes Add backslash () before characters that need to be quoted before inserting into database. Those characters where backslash will be added are single quote ('),… (Continue)