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. technofusions.com is awesome website for freshers ” for this we create¬† variable “$text” .

Continue reading

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

CODE

EXPLANATION

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