PHP

314
3205 reads

January 18, 2013

Add elements to end of array


The code demonstrates addition of elements to the end of an array.

223
2149 reads

January 17, 2013

displayPhone


Script displays a form that asks for the customer phone number.

229
2196 reads

January 17, 2013

Passing Reference


The code shows that Passing by reference allows two variables to point to the same content under different names.

86
1707 reads

January 17, 2013

Equal or Identical


Compare two variables and display whether they are equal or identical.

31
1584 reads

January 17, 2013

isTrue


This code shows the working of a ternary operator.

385
2952 reads

January 16, 2013

"Continue" demo


The following statements use the continue statement.

272
2861 reads

January 16, 2013

"Break" demo


The following statements use the break statement.

341
4269 reads

January 16, 2013

Search an array using do while loop


The following statements set up a do-while loop that looks for the customer named
Smith.

107
1606 reads

January 16, 2013

Search an array using while loop


The following statements set up a while loop that looks through an array for a customer named Smith.

118
1492 reads

January 16, 2013

Print all array elements using for loop


This code shows how to print all the elements of an array using for loop.