PHP Strings

Recent Tutorial

PHP Escape Sequences

November 8, 2013
PHP escape sequences are interpolated into strings, enclosed by single/double quotations or heredoc syntax. As its name, it is for escaping characters from being parsed as it is, literally. Escape sequences are started with escaping character backslash (\) and there are two types of escape sequences. The two types are distinguished based on character following […]
This tutorial was added to PHP.


September 12, 2013
As like as other server side scripting languages, PHP scripts are running in server. And then, server will send HTML response after executing PHP scripts. By adding HTML markup with a PHP script, we can receive server response with more readability. Sometimes, we can use PHP scripts as the value of HTML tag attributes. So, […]
This tutorial was added to HTML.

PHP String Replace

August 26, 2013
We have already seen about many of PHP string functions with this blog, like implode/explode, string extract, split and etc. But, it is never ending process of learning about PHP Strings and Arrays. Since, in that much volume of PHP core functions are there in this area. Not only in volume, these functions have gained […]
This tutorial was added to PHP.

PHP String Concatenation

July 8, 2013
If we have enough familiarity with PHP in-built string and array functions, then, it will more helpful while doing code on PHP. In this series, we have seen some of such functions already, like, trimming, PHP functions for string case conversions and etc. And, recently, we have seen about how to extract part of an […]
This tutorial was added to PHP.

PHP htmlentities()

July 5, 2013
Generally, character encoding is done in various ways in PHP which provides many functions to perform these conversions, onto a given input string, from one form to another. For example, PHP urlencode()/decode() is used to convert the special characters occurred in an URL into %(Hex) format. Another function nl2br(), we have seen while discussing about […]
This tutorial was added to PHP.

PHP String Extract

July 2, 2013
Among enormous amount of PHP functions, the string functions are more in number and very popular and heavily utilized. So, the operations made upon string input like string concatenation, implode / explode, calculating string length and etc can be performed by PHP string functions. Among them, we are going to see about some of PHP […]
This tutorial was added to PHP.

PHP Line Breaks

June 25, 2013
Line breaks are the separators which are used to escape from continuing with the same line. This is for splitting lengthy line into small, easy readable chunks to be shown line by line. PHP allow to add these line breaks by using escape sequences or predefined constants, as listed below. Linefeed (\n): This is one […]
This tutorial was added to PHP.

PHP Case Conversion

May 11, 2013
In PHP, string related functions are most popular and widely used while programming. Among them, some set predefined string functions are used for working with string cases. These functions are used to convert the string case from one another, and also, used to specify particular string with camel case representation. Such kind of PHP functions […]
This tutorial was added to PHP.

PHP Trimming

May 2, 2013
Trimming in PHP is used to clean up the unwanted white spaces of a string. There is no guarantee for the user entered input will always be perfect. Rather, the users can enter their strings with some unwanted space by mistake. Before processing these strings with in a PHP script, we need to remove those […]
This tutorial was added to PHP.

↑ Back to Top