
Welcome to MysqlPhpTutorial.com, the weblog where we discuss about php programming and development by creating easy to learn php tutorials.
Functions, sessions, arrays, classes and forms - a overwhelming amount of information you need to absorb in order to perform better as a coder.
We believe that php examples presented on the site will boost your coding knowledges and help you develop performant, secure php applications.
With php you can store data, save php form in text file such as notepad and even in microsoft word too.
The following php code will make you able to store form data in microsoft word file. It will create ms word file too that if file is not created before.
PHP substr() function will substract or returns the portion of string specified by the start and length parameters.
substr($string , int $start [, int $length ] )
When we want to output something from a mysql database we select, query it then use the mysql_fetch_array function to return an array that corresponds to the fetched row.
Most of us are using $row['rowname'] to extract desired info from that row but we can make use of list() function:
Example using $row['rowname']:
This php function takes a list of words you define and censors them. In the example you have an array of banned words and a $replace variable that is used as a replacement of the censored words.
By using eregi_replace function we can check every word in the array and replace it with the desired, proper code.