Portion() function for trimming text

Returns the portion of text specified by the start and length parameters. This help to trim text down for display in a small area or to give a sample of a larger body of text.
Continue Reading »

PHP strip remove white space from end of string

Need to remove the white space at the end of a string before recording the data. Use PHP’s rtrim().
Continue Reading »