String

How to Limit Characters to Display in a String using PHP

Submitted by nurhodelta_17 on
This tutorial tackles on how to limit characters to display in a string using PHP. In development, there are instance that the length of the string to be displayed is extremely long and destroys our layout. So, in order to solve this, we need to limit the characters to be displayed.

How to Convert String to Sentence Case using PHP

Submitted by alpha_luna on
In this tutorial, we are going to learn how to Convert String to Sentence Case using PHP. We all know, in a sentence form, the first letter is capitalized and the following word is lowercased but with the proper nouns and other words must be generally in capitalized word. We are going to convert the string to sentence case. For example, the user comment to a webpage, it will display the string into the web page but you cannot, sure enough, the text from the user is properly formatted or not.