Skip to main content

Posts

PHP 7 is the most awaited and is a major feature release of PHP programming language

PHP 7 PHP 7 is the most awaited and is a major feature release of PHP programming language. PHP 7 was released on 3rd Dec 2015. This tutorial will teach you the new features of PHP 7 and their usage in a simple and intuitive way. Audience This tutorial has been prepared for PHP developers from a beginner’s point of view. After completing this tutorial, you will find yourself at a moderate level of expertise in the knowledge of PHP from where you can take yourself to next levels. Prerequisites We assume that you already know about the older versions of PHP and now you can start learning the new features of PHP 7. Execute PHP-7 Online For most of the examples given in this tutorial, you will find an option Try it. Just use this option to execute your PHP-7 programs at the spot and enjoy your learning. What is PHP 7? PHP 7 is a major release of PHP programming language and is touted to be a revolution in the way web applications can be developed and delivered for mobile...

Swap Two number Program in PHP

Swap Two number Program in PHP Swap two number with each other means interchange their value. Suppose you have two number a and b a contain 6 and b contain value 5 after swap their value, a have 5 and b have 6. basically 2 method of interchange value a-using third variable, b-without using third variable(Using Arithmetic Operators), c-usign multiplication, d-bitwaise XOR operation, a-swap two number using third <?php $a=10; $b=20; echo "Value of a: $a</br>"; echo "Value of b: $b</br>"; $a=$a+$b; $b=$a-$b; $a=$a-$b; echo "Value of a: $a</br>"; echo "Value of b: $b</br>"; ?> b-without using third variable(Using Arithmetic Operators), wap two number with each other means interchange their value. Suppose you have two number a and b a contain 10 and b contain value 20 after swap their value, a have 20 and b have 10. <?php $a=10; $b=20; echo "Value of a: $a</b...

Myisam and innodb main defference

Hi Dear all, Myisam and innodb main defference that as following : So these are the main differences between these two engines. You can specify in the query that which engine is to be used while creating the table. CREATE TABLE test name varchar(30) ENGINE = InnoDB; Since MyISAM To check the engines of already existing tables, use the following query. It will list all the existing tables which are present in the current database, with their engines specified. show table status; If you want to view the status of a particular table, then use the following query, show table status where Name = ‘tablename’; MYISAM: MYISAM supports Table-level Locking MyISAM designed for need of speed MyISAM does not support foreign keys hence we call MySQL with MYISAM is DBMS MyISAM stores its tables, data and indexes in diskspace using separate three different files. (tablename.FRM, tablename.MYD, tablename.MYI) MYISAM not supports transaction. You cannot commit and rollback wit...

hello world in angular js

Angular 2 is the next version of Google’s massively popular MV* framework for building complex applications in the browser (and beyond). Code link : https://drive.google.com/open?id=0BxmTZPVcu72fWjJnNF9zWnRRLWM Demo link : http://freeteachnology.hol.es/quickstart/ Angular 2 comes with almost everything you need to build a complicated frontend web or mobile apps, from powerful templates to fast rendering, data management, HTTP services, form handling. Angular 2 is the next version of Google’s massively popular MV* framework for building complex applications in the browser (and beyond). When Angular 2 was announced in October 2014 at the ngEurope conference, the ngCommunity was up in arms: what did this mean for their favorite framework they invested so much time into learning and building real things with? A lot of Angular developers were worried that Angular 2 would spell the end for Angular. URL Link : http://learnangular2.com/templates/ Best example of hel...

Angular 2 introduction

Angular 2 is the next version of Google’s massively popular MV* framework for building complex applications in the browser (and beyond). Angular 2 comes with almost everything you need to build a complicated frontend web or mobile apps, from powerful templates to fast rendering, data management, HTTP services, form handling. Angular 2 is the next version of Google’s massively popular MV* framework for building complex applications in the browser (and beyond). When Angular 2 was announced in October 2014 at the ngEurope conference, the ngCommunity was up in arms: what did this mean for their favorite framework they invested so much time into learning and building real things with? A lot of Angular developers were worried that Angular 2 would spell the end for Angular. URL Link : http://learnangular2.com/templates/ After that, we start dissecting how Angular 2 apps function at their most fundamental level. We dive right into the heart of Angular 2 which includes und...

Using php print pattern

This is not new concept, you need to follow same concept like C programming to print number pattern in php. every time on interview ask question print pattern. this is important note please keep it. Output : Code : <?php for($a=1; $a<=5; $a++) { for($b=$a; $b>=1; $b--) { echo "$b"; } echo "<br>"; } ?> Now simple print one column then only one for loop use to print pattern  This is not new concept, you need to follow same concept like C programming to print star pattern or triangle of star. Output : Code : <?php for ($row = 1; $row <= 5; $row++) { echo "* </br>"; } ?> print * in square size as following manner and please follow following code : Code : <?php for ($row = 1; $row <= 5; $row++) { for ($col = 1; $col <= 5; $col++) { echo '* '; } echo "</br>"; } ?> PHP start pattern of trangle as output and code here : Output : Code ...