Write a program to print factorial of a number in PHP. In this tutorial, We are going to write a PHP code to print factorial of a number using iterative as well as recursive approach. Before solving this problem let’s understand what is factorial.
Program to Print Factorial of a Number in PHP
How to install, uninstall and remove phpMyAdmin from Ubuntu. phpMyAdmin is a very popular MySql Administration tool used my million of developers.
MCQ on stack and queue data structure. The concept of Stack and Queue data structure is very important in computer science. In my previous post i have discussed following things.
Stack program in C using Array.
Queue data structure and their implementation.
The purpose of this objective questions is to test how well you understand the concept of stack and queue.
PHP objective practice questions for interviews. These output questions test how well you understand PHP and it’s programming methodology.
Pre-increment Vs Post-increment operators. What’s the difference between pre-increment (++i) and post-increment (i++) operators. In this post, we’ll learn how pre-increment and post-increment operators work in programming.
In this post, You’ll find MCQ which will help you to understand this concept fully.
Yii is a very high performance PHP framework used for development of web applications. It’s free and open-source framework which follows MVC architecture.So now you might be thinking that there is many other PHP MVC framework like Laravel, Symfony, Cake, Codeigniter etc. are available why i use yii framework.The best thing about Yii’s is it’s performance. Definitely If you are making highly-scalable web application then you can’t ignore this point.
MCQ on Recursion
Recursion is the most important concept in computer science. In my previous posts, i have written about binary search implementation using recursion and difference between recursion and iteration.
These MCQ helps you to understand the concept of Recursion.
1) Which Data Structure is used to perform Recursion?
c) Linked List
These C objective questions test your basic understanding of C language and it’s concept. The questions i included is a short piece of c code, every question has four options, you have to choose the correct answer.
PHP is the most popular web programming language. It’s Open-Source and easy to learn. If you are learning PHP, check some video tutorials.