The str_ireplace function In order to replace words in your strings with other words, you can use replace string function str_ireplace() in PHP. You can You can use str_replace() as well, however, this is a case sensitive function while str_ireplace() is not. See an example of str_ireplace PHP str_ireplace Syntax Following is the syntax of using the str_ireplace … Read more2 Demos of PHP str_ireplace functions (case-insensitive replacement)
Grouping similar types of tasks into classes is termed as object oriented programming. Where Class is a combination of variables/properties and functions/methods. This chapter does not aim at explaining object oriented programming concepts thoroughly. The aim of this chapter is how to create and use PHP classes.
Often we see web sites having links to contact them by way of Contact Us or An Inquiry form or any other way. After clicking their visitors are presented with a form asking for information and then Submit. Generally an email is sent to webmaster or contact persons of that website. So in your PHP web site you will need to send email facility in many scenarios.
The mysql_query() function After establishing a connection to the MySQL and its specific database, it is time to work with the database records. Mostly, we need to insert, update, retrieve and delete records from the database tables. PHP provides a built-in function mysql_query() to achieve these tasks along with others. This chapter will explain how … Read moreHow to use PHP mysql_query() to Insert, Select, Update and delete records from MySQL database
Establishing DB connection with mysql_connect PHP provides built-in function mysql_connect to establish database connection with MySQL database. See the syntax below connection mysql_connect(server,user,passwd,new_link,client_flag); We have assumed that you have created a database with: database name = testdb user name = tesuser password = testpassword at your local system. In that case: DB host = “localhost” … Read morephp mysql connect | using mysql_connect function to establish DB connection