Skip to main content


Showing posts from December, 2018

Amazon Ads

Control Statement in PHP with Example

PHP Control Statement What is Control Statement in PHP? A block of code which decide the execution way of programme according to the value of the given condition.

There are some control statements that PHP supports.
1. PHP if Statement If a given condition is true, only then if statement will execute.
if(condition) {
block1 of code;

if Statement Example: 
if ($15 > $10)
echo “15 is greater than 10”;

15 is greater than 10

2. PHP if…else Statement In PHP, if a statement is executed only when a specified condition is true. It evaluated to its Boolean values. If the condition is FALSE, it’ll ignore it.
if(condition) {
block1 of code
}else {
block2 of code

if - else Statement Example: Find a largest number between two numbers using if else statement;
$first_value = 5;
$second_value = 10;
if($first_value > $second_value) {
echo “$first_value is greater than $second_value”;
} else {
echo  “$second_value is greater than $first_value”;

Introduction to Control System Design and its Classification

What is Control System? A control system is a group of mechanical or electronic devices that regulate alternative devices or systems using control loops. Typically, control systems are computerized.
Control systems are a central a part of the business and automation. The kinds of control loops that regulate these processes represent industrial management systems (ICS) like superior management and knowledge acquisition (SCADA) and distributed management systems (DCS).

Uses of Control systems are won’t enhance production, potency, and safety in several areas, including:AgricultureChemical plantsPulp and paper millsQuality managementBoiler controls and powerhouseNuclear power plantsEnvironmental managementWater treatment plants
There are two types of control system:1. Open loop control system:  Its operation is incredibly easy, once a signal directs the control component to response, an output is going to be made. Samples of the open loop control systems include laundry machines, light-w…

An Ultimate Guides to Garbage Collection in Java

What is Garbage Collection in Java?
Java garbage collection is the method by that Java programs accomplishes automatic memory management. Java programs compile to bytecode which will be run on a Java Virtual Machine. Once Java programs run on the JVM, objects are created on the heap, which is a share of memory dedicated to the program. Ultimately, some objects cannot be required. The garbage collector finds these unused objects and deletes them to liberate memory.
When there are not any references to an object, it is assumed to be now not required, Also, the memory, obtained by the purpose can be rescued. There is no specific necessity to destroy an object as Java handles the de-allocation by itself. The technique that accomplishes this is often called Garbage Collection. Programs that don’t de-allocate memory will eventually crash once there’s no memory left within the system to assign. These programs are said to have memory escapes.
Why we perform Garbage Collection in Java? The purpo…