Posts from PHP

Convert Comma Separated String into Array in PHP

By Faruque Ahamed Mollick

Suppose you have a comma separated string which you want to convert into an array for any purpose. How will you do that? Here in this tutorial, I am going to give you the simple co.... Read More

Difference between PHP include and require statements

Difference between PHP include and require statements

By Faruque Ahamed Mollick | May 31, 2017

The include and require statements in PHP used to take all the file content in a specific file and copy it in the file that uses the PHP include and requires statements. These functions can take text code or markup and include it in that file. The main purpose of using PHP include and require statement is […] Read More

PHP Weather Forecast Script That Uses OpenWeatherMap API

By Faruque Ahamed Mollick

This is the old version of the weather forecast PHP script. Here is the new version of the weather forecast script that works on AJAX. In this post, I am going to review a weather .... Read More

PHP urlencode And urldecode functions and it’s usage

By Faruque Ahamed Mollick

PHP has two inbuilt function urlencode() and urldecode() which can be used for encoding and be decoding a string. This two function can send a query and to get query through URL. P.... Read More

Replace Multiple Items In String Using PHP str_replace Function

By Faruque Ahamed Mollick

I have already shown in one of my posts how to replace a character of a string using the PHP str_replace() function. Here is the post – Replace A Character Of String Using P.... Read More

Replace A Character Of String Using PHP With Other Character

By Faruque Ahamed Mollick

In this post, I am going to discuss a thing which may be interesting to you. Suppose you have a text block which represents as a string in PHP and you want to replace a particular.... Read More

How To Redirect URL Using PHP header redirect?

By Faruque Ahamed Mollick

Redirecting URL in PHP is very useful. In many purposes, developers need to redirect a page to a URL. Redirecting page into a specific URL is very easy and simple task. You just ne.... Read More

PHP md5() function and code snippets of md5()

By Faruque Ahamed Mollick

md5() is one of the inbuilt function of PHP that is available from PHP 4. The md5() function can easily calculate the MD5 hash of a string. This PHP function uses the RSA Data Se.... Read More

Related Posts