How to declare Inheritance in PHP with example?

What is Inheritance?:- Inheritance means one class method or properties access to another class. The child class will inherit all public, private, protected methods or properties from the parent class….

Read more »

Difference between Public, Private & Protected Access Modifier in PHP with example

Public Access Modifier:- Public Method or variable can be accessed from anywhere in the class. It means from inside or outside the class and child class also means anywhere you…

Read more »

What are Comments, Constant Variable, String Interpolation, Arithmetic and Assignment Operators in PHP?

Comments in PHP Comments are those human-readable texts that we should add to make our code more understandable for other programmes. It is ignored by PHP and doesn’t affect your…

Read more »

Insert and Retrieve data from database in PHP using MySQLI

What is Mysqli:-The Mysqli extension, or as it is used before this name the MYSQL and update extension, was developed to take advantage of new features found in Mysqli systems…

Read more »

How to Define, Call & Create a function in PHP?

What is function in PHP? PHP provides us many built-in helper partners works that you can call anyplace inside your application OR browser. They make your work process advantageous for…

Read more »

How to fix – “There has been a critical error on your website” – WordPress error.

There are so many WordPress developers facing this issue in their WordPress site due to plugins or theme issues. and you will also find so many solution on this. in…

Read more »

How to define String in PHP?

A string is a group of characters, where a character is equivalent to a byte. This implies PHP just supports a 256-character set and subsequently doesn’t offer local Unicode support….

Read more »

How to Print Multidimensional Associative Array in PHP using loop with example?

Foreach Loop with Multidimensional Associative Array :- Multidimensional Associative Array is used to store using foreach loop arrays value where pairs arrays value can be an integer or string. It…

Read more »

Php Error: Composer – allow_url_fopen must be enabled in php.ini

Solution $ php -i | grep allow_url_fopen $ allow_url_fopen => Off => Off $ php -d allow_url_fopen=on /opt/cpanel/composer/bin/composer update

Read more »

How to run php artisan queue:listen in background on Ubuntu or Linux machine

Steps:1. Login to ubuntu machine using putty or any other ssh client2. Run command: sudo -s3. Run command: cd /opt/lamp/htdocs/<Laravel project directory name>4. Run command: sudo vi start-laravel-project-name-queue.sh5. Click “i”…

Read more »

How to Print Multidimensional Numeric Array in PHP using loop?

For Loop with Multidimensional Numeric Array:- Multidimensional Array means one or more arrays have multple array values access. It can store numbers, string multiple array uses of Nested For Loop…

Read more »

Echo Statement, Print Statement, and Here document in PHP.

Echo Statement This statement is used to output the data to the screen or printing text on the screen. For Example:- echo “Sushant Kumar”;echo ‘Sushant Kumar’;echo 59.236;echo (“Sushant Kumar”);echo “Sushant”…

Read more »

What is a client, Server, Internal Data Types, and Variables in PHP?

Php Introduction PHP is an open Source Server-side programming/ Scripting language that suited for web development and can be embedded into HTML. PHP stands for Hypertext Preprocessor But it’s original…

Read more »

What is Multidimensional array in PHP with Example?

Multidimensional Array is Arrays of Array means one arrays have multiple array. You can define as it have 2Dimensional ([][]), 3Dimensional ([][][]), 4Dimensional ([][][]), and etc. ex:- How to work:-…

Read more »

How can use Array Operators in PHP with Example?

Php union:- ($a+$b) = Work as union means if same value then replace left variable to right variable(for keys that exit both array) ex:- Php Equality:- Key value same but…

Read more »

What is difference between echo, print, and print_r in PHP with example?

Echo Statement:- The echo statement is used to output in display with or without parenthesis echo or echo() but no return value. Echo Statement faster than print Statement. ex:- Print…

Read more »

What is the difference between numeric and associative array in loop with example?

For Loop with Numeric Array:- Numeric Array uses in For Loop for Declaration and Initialization as numeric index values are store and access. ex:- For Loop with Associative Array:- The…

Read more »

PHP Laravel Error: Trying to access array offset on value of type null

Environment:Laravel Version: 5.5PHP Version: 7.4.0 Error stack trace:Message: Trying to access array offset on value of type null Sample code that gave me error:$filterConfig = $request->get(‘filterConfig’, null);$showAll = $filterConfig[‘show’][‘all’] ===…

Read more »

How many types of loops are there in PHP?

While Loop:-While loop keeps repeating an action until a condition returns false. Nested While loop:-Nested while loops work as while loop but in this case, you use one or more…

Read more »

How to clear laravel.log in PHP Laravel

laravel.log is a file that collects all the Log messages by default into it Sometimes you need to truncate this log file for troubleshooting the application Command to be used…

Read more »

What is the use of PHP explain with syntax?

What is PHP? PHP: Hypertext Preprocessor(Recursive Acronym) Server Side Programming/Scripting Language Can be embedded directly within HTML (<?php ?>) Files use a “.php” file extension. If… statement:- if… and nested…

Read more »

How to store and retrieve image from the database in Laravel.

# Creating Migration For Uploading Image We need to add three lines in our migration file which makes column in our Database .After adding, run Migration . # Blade Form…

Read more »

How to declare conditional statements in PHP with example?

When You write a code different actions for different conditions. Then, You can use Conditional statements in your code to do this. If Statement:- If Statement executes some code when…

Read more »

PHP 7 Essential Guide – PHP Operators for beginners

PHP operators are used to performing operations on variables and values. Maths Operators Assignment operators Logical Operators Increment and Decrement Operators String Operators Maths Operators:- arithmetic operators are used with…

Read more »

How to install and activate plugins in Moodle?

Moodle is an open source platform which is used for managing your course and it is also called CMS ( Course management system). Here I want to say you about…

Read more »

How to Stop Brute Force Attacks on WordPress?

if you want to protect your WordPress site from Brute force attack. Then you should follow the below step. before going to step that can protect our website we are…

Read more »

PHP Tutorial for Beginners

What is PHP? It is an open-source general-purpose scripting language that is especially suited for web development. Code executed on the server. It can be embedded in HTML. You should…

Read more »

Top WordPress images & Media Gallery Plugins

Here you can find top useful media plugins Envira Gallery Image Photo Gallery Final Tiles Grid Photo Gallery by 10Web FooGallery Photo Gallery by Supsystic Everest Gallery Lite Meow Gallery…

Read more »

How to Move a Live WordPress Site to Local Server

Why we are discussing on this topic because we are here to tell you when any developer of WordPress wants to test new themes, plugins, or another development testing. then…

Read more »

Exploring Directory Structure in laravel.

Laravel applications follow the Model-View-Controller architecture design pattern. Models represent the entities in the database and help you to query the database and return the data Views are the pages that will be displayed…

Read more »