PHP Strings

Recent Tutorial

PHP Escape Sequences

November 8, 2013
Escape sequences are used for escaping a┬ácharacter during the string parsing. It is also used for giving special meaning to represent line breaks, tabs, alert and more. The escape sequences are interpolated into strings enclosed by double quotations or heredoc syntax. If a string is within the single quotes or in nowdocs, then the escape […]
This tutorial was added to PHP.

HTML PHP

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

PHP String Replace

August 26, 2013
We have already seen 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 that […]
This tutorial was added to PHP.

PHP String Concatenation

July 8, 2013
If we have enough familiarity with PHP inbuilt 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 PHP […]
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 string functions […]
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 the lengthy line into small, easy readable chunks to be shown line by line. PHP allow adding 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 a particular string with camel case representation. Such kind of PHP […]
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 within a PHP script, we need to remove those spaces. […]
This tutorial was added to PHP.

↑ Back to Top