Profile Picture
IT Made Easy
The site provides some rough IT Notes that make your life easier. The site currently has notes on HTML, CSS, Regex, OOPS, JS, JQuery, PHP, Java, ASP.NET, C#, Database, Linux, URL Rewrite, SEO, Project Management and Hosting. Please do share this site if you like.

Arrays

Next
Next
  • Arrays can be constructed using

array () construct

array operator []

  • print_ r() prints the array data recursively out and can be stored as a string

var_dump( ) prints out the data and data type recursively

var_export() prints out array data recursively as a PHP script

  • array(key = value)   and array[key]=value
  • Merge arrays, e.g., $array3 = $array1 + $array2
  • extract($arr, EXTR_PREFIX_ALL,”prefix” )
  • count ($arr,1) will count recursively the number of elements
  • The array cursors: reset( ), end( ), next( ), and prev( )

IT Notes

by VinodSebastian



IT Downloads


Catalogue