Php Programming logic questions and answers

Php Programming logic questions and answers

[vc_row][vc_column][vc_tta_accordion][vc_tta_section title=”1)Write a program to print Factorial of any number?” tab_id=”1491491648742-dbee0487-5505″][vc_column_text][highlight txtcolor=”#000000″]<?php $number = 6; /*number to get factorial */ $fact = 1; for($k=1;$k<=$number;++$k) { $fact = $fact*$k; } echo “Factorial of $number is “.$fact; ?>[/highlight][/vc_column_text][/vc_tta_section][vc_tta_section title=”2)Write a program in…

Continue Reading
Php oops interview questions and answers

Php oops interview questions and answers

Introduction to Object-Oriented Programming Using PHP.This page  will describes the term `object-oriented programming`.let’s start with few basic concepts before you can begin writing any code. Object-oriented programming is a method of programming based on a hierarchy of classes, and well-defined…

Continue Reading
PHP Interview questions and answers

PHP Interview questions and answers

1) What is PHP? PHP is a server side scripting language commonly used for web applications. PHP has many frameworks and cms for creating websites.Even a non technical person can cretae sites using its CMS.WordPress,osCommerce are the famus CMS of…

Continue Reading