Skip to content

Tag Archives: PHP-basics

In PHP, the complex data can not be transported or can not be stored. If you want to execute continuously a complex set of data… Read More
Codeignitor is one of the popular MVC framework of PHP. Most of the developers prefer to make their projects on Codeignitor because of it’s lightweight… Read More
Codeignitor is based on MVC design pattern. We will see how the controller, model, and view work and display the result to the user. Controller:… Read More
In PHP, the size of a floating values is platform-dependent. Due to internal representation of floating point numbers, there might be unexpected output while performing… Read More
PHP Filter is an extension that filters the data by either sanitizing or validating it. It plays a crucial role in security of a website,… Read More
The <php is used to identify the start of a PHP document. In PHP whenever it reads a PHP document, It looks for: <?php ?>… Read More
Enumeration (or enum) is mainly used to assign names to integral constants, the names make a program easy to read and maintain. In PHP, enumeration… Read More
Given a PHP class object and the task is to convert or cast this object into object of another class. Approach 1: Objects which are… Read More
PHP is a widely-used open source and general purpose scripting language which is primarily made for web development. It can be merged into the HTML.… Read More
In PHP, errors and warnings can be logged into a file by using a php script and changing configuration of php.ini file. Two such approaches… Read More
In PHP, callback is a function object/reference with type callable. A callback/callable variable can act as a function, object method and a static class method.… Read More
By default, PHP variables are passed by value as the function arguments in PHP. When variables in PHP is passed by value, the scope of… Read More
Problem: How to use a switch case ‘or’ in PHP? Solution: This can be achieved in 2 ways. They are as follows: Method 1: Without… Read More
Script execution time in PHP is the time required to execute the PHP script. To calculate script execution time use clock time rather than the… Read More
Prerequisite: Types of Error PHP is used for web development. Error handling in PHP is almost similar to error handling in all programming languages. The… Read More