PHP interview questions and answers for freshers – Part 1

PHP interview questions, which should help you become a best PHP codder. We hope you find these questions useful. If you are an interviewer, Take the time to read the common interview questions you will most likely be asked. What is PHP?PHP is a server side scripting language commonly used for web applications. PHP has…Read More

Top 5 Best PHP Frameworks of 2018

Talking about the PHP frameworks, they are developed to complement PHP. PHP frameworks complement PHP in many ways, some of which are: Provides pre-built modules Serves a platform for building robust & reusable components Enables faster development cycles Using libraries & tools provided by the framework results in rapid development Facilitates easy upgradations and maintenance of…Read More

Convert Array to XML and XML to Array in PHP

XML (Extensible Markup Language) is a markup language that encodes documents in a machine-readable and human-readable format. Generally, XML is used to store and transport data. You can use XML many ways in the web application. If you’re concerned about database size and want to reduce database uses, XML can help you to free the…Read More

PHP form validation

Lets create a simple form with name, email, website, comment and gender fields, having name, email and gender field as an required field. In the following code we have added some variables: $nameErr, $emailErr, $genderErr, and $websiteErr. These error variables will hold error messages for the required fields. We have also added an if else statement for…Read More