For comprehensive online Drupal training via Skype, send an email to digitalpiku@gmail.com to get a quotation for training cost. You will learn about Drupal basics, advance Drupal, performance, security and best coding practices.

Wednesday, November 17, 2010

Basic PHP knowledge for Drupal - Part 4

4. Arrays: PHP arrays are widely used in drupal for internal coding. Drupal API has enough application of php arrays so one have to understand php array operations for drupal development. Arrays are defined as a variable which holds multiple similar types of data , i.e strings, integers etc. The syntax for php array are listed below,

Syntax:
$a = array('cat','dog','cow');  // String type array
$b = array(1,2,35,6,7); // Integer type array

Arrays can hold any number of elements and php have multiple array functions to perform several operations over them. Please refer to the http://www.php.net for array reference.

See this video for more details about PHP arrays.



Another Video for more details about arrays,



Tomorrow I will write about the procedure to start a Drupal Development Task.