All TAG POST

Difference between SQL and programming languages

Basic Concept of SQL SQL is a non-procedural language that is designed specifically for data access operations on normalized relational database structures. The primary difference between SQL and other conventional programming languages is that SQL statements specify what data operations should be performed rather than how to perform them.SQL is a simple and powerful language used to create, access and manipulate data and structure in the database.SQL is the only language through which you create. Concept of Programming Languages  To solve problems in a procedural programming lan... Read more

What are traits in PHP ?

Traits are a mechanism for code reuse in single inheritance languages such as PHP. A Trait is intended to reduce some limitations of single inheritance by enabling a developer to reuse sets of methods freely in several independent classes living in different class hierarchies. Traits have been available in PHP since 5.4. A trait is a PHP file that uses the trait keyword instead of class.One of the benefits of traits over classes and inheritance is the ability to use multiple traits inside one class. This is sometimes compared to multiple inheritance which is a feature PHP does not support.... Read more

What is interface in PHP ?

Interfaces are defined in the same way as a class, but with the interface keyword replacing the class keyword and without any of the methods having their contents defined. All methods declared in an interface must be public. this is the nature of an interface . Note that it is possible to declare a constructor in an interface, what can be useful in some contexts . How to declare Interface interface School { public function mySchool(); } Have a look , here we have declared an interface. Look , in interface we can just use only public access specifier and can not write any... Read more

What is abstract class in PHP ?

What is abstract class ? Abstract class works almost like interface . If you don’t know about interface then please read this article .what is interface ?   Abstract classes 1. We declare a abstract class using abstract keyword .. 2 . We can’t create an object of abstract class . 3 . We can access abstract class property from child class using parent keyword. 4 . We can declare non-abstract/abstract method in abstract class . 5 . Abstract class method can’t contains body bar . Only we can override it from sub class . Hope you have understand... Read more

How to Use Static Properties in PHP ?

Static Methods and Static Properties Sometimes, it is useful if we can access methods and properties in the context of a class rather than an object. To do this, you can use static keyword. So we can access static method using class name along with scope resolution . How to declare static method or static property ? class User { public static $your_variable_name; // You can use any access specifier public static function your_method_name() { //code goes here } } Accessing non-static method class User { public static $name = 'john'; // You c... Read more

LET'S SOCIALITE

Surfe.be - passive income

Recent Tweets