Posts

Showing posts from May, 2020

SQL Vs NoSQL

Image
  SQL   NoSQL  1.) SQL is generally used in Relational Database Management System 1.) NoSQL is used for Non-relational, distributed database system.  2.) Structured data can be stored in tables.   2.) Using JSON data, unstructured data can be stored.  3.) The schemas are static. 3.) The schemas are dynamic.   4.) Schemas are rigid and bound to relationships. 4.) Schemas are non-rigid, they are flexible.   5.) Helpful to design complex queries. 5.) No interface to prepare complex query.

PHP Lecture 3.....

Image
>> String Interpolation.. String Interpolation is a quick shortcut, allowing to pop the value of a variable into a double quoted string. Ex:- <?php $value =10; echo "Value is: $value"; ?> >>Rules 1. Surround the variable name with spaces.     Ex:- <?php                $value=10;                echo"$value is good for you";                ?> 2. Don't use single quotation marks - when you use single quotation marks , PHP does not apply string interpolation. >> Constants In PHP.... 1. Whose values can't be modified. 2. define() function is used to create a constant. 3. Syntax:- define("constant_variable", value, case-insensitive);       Ex:- a.) define("pi", 3.14);    [Here "pi" is case sensitive]               b.) define("pi", 3.14, TRUE);    [Here "pi" is non-case sensitive]               c.) define("site", "anime"); >> RULES... No need to start con

PHP lecture 2....

Image
>> VARIABLE IN PHP :---    Variables are containers which is used to store information. Types of Variables:-- 1. Local Variable. 2. Global Variable. 3. Static Variable. >>VARIABLE DECLARATION :-- In PHP, variable names begin with " $ " sign, followed by a name.  Ex :-  $roll, $price, $name. >> RULES FOR DECLARING VARIABLES :-- 1.  Variable starts with ' $ ' sign. 2.  Variable name only starts with a letter, an underscore( _ ). 3.  Variable name cannot start with a number. 4.  It is case sensitive. 5.  Do not use predefined constant name.  For ex :-  PHP_VERSION, PHP_OS, etc.... 6.  Do not use reserved keywords.  For ex :-  else, if, etc.... >> VARIABLE INITIALIZATION :--   >  PHP can store all type of data in variables. Before using  a variable in PHP, we have to assign a value to it, so that PHP will create that variable and store data in it. That means we have to assign data to a

What happened to PHP 6

Image
One of the key features planned for PHP 6 was support for unicode, meaning that PHP 6 would be able to work natively with any language. This would be a great popular programming tool. Unfortunately, implementing Unicode support went from being complicated to quite difficult, and the developers behind the language tabled development of PHP 6. Not all was lost, however; some of the features planned for PHP 6, such as support for namespaces (an object-oriented programming concept), were added to PHP 5.3. When it was time to release the next major version of PHP, it was decided to name it PHP 7 to avoid confusion with the PHP 6 version that was started but never completed.