Saturday, 11 April 2015

Webcom is the Best ERP SAP Training Institute in Chandigarh for Industry Professionals /Fresher’s /Job Seekers /Corporate



Webcom offers both Fast Track and Normal track Class room training program in Chandigarh to suite your busy lifestyle. ERP SAP Training  are delivered with the best trainers having good experience in SAP class room training .We offers  real time and weekend SAP batches for all its clients/students with hands-on practice. 

Our ERP SAP Training in Chandigarh is scheduled normally at a time that best suites you. Chandigarh also offer tailored made ERP SAP training courses for companies and individuals looking for the best  ERP SAP training institute in SECTOR 34A ,Sco.114,115,3rd floor ,Chandigarh.

Webcom had placed around 301 SAP Trained students in SAP Implemented and IT Industries.

Webcom ERP SAP class room Courses are as follows:

ERP SAP ABAP Training
ERP SAP FICO Training
ERP SAP HCM Training
ERP SAP PM Training
ERP SAP WM Training
ERP SAP PP Training
ERP SAP MM training
ERP SAP SD Training
ERP SAP ABAP Training
ERP SAP UI5/UX training
ERP SAP OOABAP training
ERP SAP BASIS Training
ERP SAP Webdynpro
ERP SAP FICO Training
ERP SAP HCM Training
ERP SAP PM Training

Thursday, 22 January 2015

Array Sorting Functions in PHP



In php we have various functions that can be used for sorting of array in alphabetical order, numerical order ascending and descending order. Well when we are having the big count multiple items in a single variable array. We will need to sort them in ascending and descending format for use in the various functions in a program. Following are the methods with definitions which are used in sorting of arrays.

1)- sort():- sort function is used for sorting the array in ascending order in alphabetical or numerical order. 

For example
<?php
$team = array("jagvinder", "dalpreet", "baljot");
sort($team);
Above array will be sorted like baljot,dalpreet, jagvinder
$num = array(4,1 6, 2, 22, 11);
sort($num);
Above array will be sorted like  2,4,11,16,22.
 
?>
2)-rsort():- this function will sort the array in descending order alphabetically and numerically
<?php
$webteam = array("harinder", "diljot", "baltaj");
rsort($webteam);
Above array will be sorted like harinder,diljot,baltaj
$num = array(17,1 5, 12, 24, 10);
rsort($num);
Above array will be sorted like  24,15,17,12,10.
  ?>
3)-asort():- This function  will sort the associative array according to the value in ascending order.
<?php
$salary = array("baldev"=>"25500", "harjot"=>"30500", "amarjeet"=>"20500");

asort($salary);
output will be
20500,25500,30500
  ?>
4)-ksort():-This function  will sort the associative array according to the key in ascending order.
<?php
$salary = array("iqbal"=>"28000", "harjeet"=>"31000", "raj"=>"17000");

ksort($salary);
output will be
31000,28000,17000
  ?>
5)-arsort():-This function  will sort the associative array according to the value in descending order.
<?php
$salary = array("harman"=>"27000", "jaswant"=>"32000", "diljot"=>"18000");

arsort($salary);
output will be
18000,27000,32000
  ?>
6)-krsort():-This function  will sort the associative array according to the key in descending order.
<?php
$salary = array("balraj"=>"26000", "joginder"=>"31000", "daljeet"=>"19000");

krsort($salary);
output will be
31000,19000,26000
  ?>

This examples of sorting of arrays is provided by the experienced trainers of webcom systems. There is much more in arrays that can be learned. So for complete guidance in arrays in php and its functions join the best industrial training in Chandigarh webcom systems.

Wednesday, 14 January 2015

Functions in Programming




The logical meaning of function is some particular task that is the main working of a thing, that a thing performs some particular work. In programming world some of the main workings of software are assembled in particular functions.  Functions are of most importance in programming in any language whether php, java, Dot Net etc.  Functions can be very simple like the addition and subtraction with just few lines of code and they can be very long with vast lines of codes. So the basic definition of function is Function is a block of code that is used to perform some specific task.

Uses of functions are as follows
1)-By making functions we reduce the complexity of the program.
2)-In functions we have blocked the code in function, and that code can be reused again and again whenever that specific task need to be performed, just by calling that function.
3)- It saves a lot of time in programming, and it reduces the redundancy of code.
Examples of functions in php
<?php
Function addition ($a, $b)
{
$result = $a+$b;
Echo “addition result is”. $result;
}
Function subtraction($a, $b)
{
$result=$a-$b;
Echo “subtraction result is”. $result;
}
Function multiplication($a, $b)
{
$result=$a*$b;
Echo “multiplication result is”. $result;
}
Function division($a, $b)
{
$result=$a/$b;
Echo “division result is”. $result;
}
Function modulus($a, $b)
{
$result=$a%$b;
Echo “modulus result is”. $result;
}
addition (10,20);
subtraction (20,10);
multiplication (10,20);
division(20,10);
modulus(20,10);
?>
Output of above program will be as follows:-
Addition result is 30
Subtraction result is 10
Multiplication result is 200
Division result is 2
Modulus result is 0
The above program is a very simplest example of functions in which we have created simple mathematical functions and whenever in a program we require the mathematical calculation of two numbers we can simply call these functions.

This example is provided by webcom technologies, webcom technologies follow the easiest ways of explaining the concepts and problems. Webcom deals in following technologies:-
1)-java
3)-php
4)-SAP

Webcom is the best industrial training institute that has been in this market from the last 15 years and have very good record till now, to find out the complete training solution in php, join Webcom Systems, Chandigarh.


Wednesday, 7 January 2015

Return Type Functions and Non Return Type Functions




Return type functions in php are those that return the values, you can return any type of values whether simple values, arrays or even objects can be returned. When the return keyword is called in a function its execution is stopped immediately and the control of program is shifted to the point where function is called. Below is the example of return type function
<?php
Function square($a)
{
Return $a*$a;
Echo “inside square function”;
}
Echo square(5);
?>
The output of above program will be simply 25, it will not print  “inside square function” statement, because when the function is called it returns the square from line one to the calling point.
And if we will not use the return keyword in the function then it will not return back control to calling point and will also print the 2nd statement.
Call by value and call by reference
In functions we have two things call by value and call by reference, call by value means the variables which are passed in the function are called by their values only, function don’t need to do anything with the memory address of the variable( means where the variable is stored in the memory). If any change is done to the passed variables inside the function it will not be reflected in the outer variables. 

And call by reference means the variables which are passed to the function are called by their reference means, they are called from their original memory address location, and if any change is done in that variable inside the function, that change will also be reflected in the outer variable. It will be cleared by the following examples:-
Call by value
<?php
Function increment ($a)
{
$a++;
Echo “value of a is ”.$a;
}
$x=10;
Increment($x);
Echo “value of  variable x is ”.$x;
?>
Output of above program is:-
Value of a is 11
Value of x is 10
Call by reference

<?php
Function increment (&$a)
{
$a++;
Echo “value of a is ”.$a;
}
$x=10;
Increment($x);
Echo “value of  variable x is ”.$x;
?>
Output of above program is:-
Value of a is 11
Value of x is 11
In the above two programs, in first program we are passing the value of variable x to function increment, so when the value is incremented in the function it does not affected the variable x.

But when the same function is called by reference, in the 2nd function we are passing the address of the variable in function increment by using the & sign, so when the function is called variable x address is passed to the function, and when its value is incremented in the function it also affected the variable x, its value got incremented.
These examples has been provided by the webcom technologies pvt ltd. The best industrial training institute in Chandigarh, for more information please join us for complete php training program.

Thursday, 25 December 2014

Use of Continue and Break Keywords in PHP



Well these both keywords continue and break  are very familiar keywords in every programming language and are used vastly in daily programming exercises.  I will explain where these keywords can be used in programming like loops (for loop, while loop, do while loop), and switch case etc.  well both break and continue have very different roles in a program  and there functioning is quite different, I will explain their differences with proper practical examples.

Break keyword and its functioning

In every programming language every keyword have their logical meaning, so as per the logical meaning of break, it means that to break something midway and came out of that thing. Mostly it is used in loops and switch case.  Below is the example with proper explanation and output result of break keyword.

Example 1:-
<?php
For($i=1; $i<=10; $i++)
{
echo  $i;
}
?>
Output result example 1 :--   1 2 3 4 5 6 7 8 9 10
Example 2:-
<?php
For($i=1; $i<=10; $i++)
{
echo  $i;
If($i==5) break;
}
?>
Output result  example 2  :-   1 2 3 4 5
See in example 2  we have used the break keyword in for loop which is printing from no. 1 to 10, and we have used the break keyword on condition when value of variable I will be 5 the loop will break and the control  shifts out of loop. So in example 2 it is printing only upto number 5.

Continue keyword and its functioning

The keyword continue is also used in the loops, but unlike break keyword it is used for continuing the loop. In simple words the point where continue keyword will be used in the loop the loop will not function below that point and continue from there only.  This thing will be more clear by the following example.
Example 3:-                                                                                       
<?php
For($i=1; $i<=5; $i++)
{
echo “hello”;
echo “world,”;
}
?>
Output result example 3 :-  hello world, hello world, hello world, hello world, hello world
Example 4 :-
<?php
For($i=1; $i<=10; $i++)
{
echo “hello”;
If($i>=3) continue;
echo “world,”;
}        
?>
Output result example 4  :-   hello world, hello world,  hello,  hello,  hello

See in example 4 in result it has printed complete hello world only two times and the rest of time it printed only hello.  Because when two times it printed complete sentence hello world, on third time when the if condition becomes true($i>=3), then continue keyword executed and it continued the loop from that point to increment the value of $i=4 and didn’t printed the below statement world.  So in simple words the point where continue keyword will execute the statements below continue keyword in a loop will not be printed.