Introduction to Arrays in PHP

In the following article ( introduction to arrays in php ) we will talk about arrays in php, Syntax, Types and how to use them. Before we begin “What exactly is an Array ?”

Array is a collection of values which are stored in a single variable. By now you might have seen that you can store characters and numeric values in a variable. But by the use of array, you can store various types of values in a single variable. Lets see the example below: Continue reading

An Introduction to JSON format

This article is based on basics of JSON, a model for the representation of information widely used by Web applications that work with AJAX technology and many more.

 1. Introduction to JSON

JSON (JavaScript Object Notation) is a model for storage and transmission of information in text format. Although very simple, it has been widely used by Web applications due to its ability to structure information in a form much more compact than that achieved by the XML model, making it faster parsing such information. This explains the fact that the JSON have been adopted by companies such as Google and Yahoo, whose applications need to transmit large volumes of data.

This article provides an introduction to JSON format and is divided as follows. Section 2 describes the syntax of the language. Then, the section 3 performs a comparison between XML and JSON models.  Continue reading

6 Key Skills for How to become a better programmer

People always asked me about how to become a better programmer; “Where to learn”, “what to study,” “what needs to be done” or ” learning to program ” to be a better programmer.  Technology has always had much to do with me and my interests and if you are reading this blog then you are on a right path… Continue reading

Read and Write text file in PHP

In many Websites we develop, most of them use the log system so we can map system points to be analyzed later, such as a connection failure, attempts to access a restricted place … Anyway there are many possibilities of use a log file.

For this we will use only three functions, which is the fopen to open the file, fwrite to write to the file, and fclose to close the file.

The first step is to define the name of the file in which we will do read write operations (or what is the name of file to be created), in our example will specify a suggestive name like “file.txt” and add it to a variable “$file”.

In our example we will insert the text “Hello. is awesome website for freshers ” for this we create  variable “$text” .

Continue reading

“Read More” Link / Add Limit to Text In PHP



Line Five Strip Tags are used to remove any html tag present in the string and returns a pure string without any html tag .

For more Documentation On Strip Tags Click Here Continue reading