Functions & Arrays


  • Using Array in PHP (Method 1)
  • Using Array in PHP (Method 2),
  • Using Array in PHP (Method 3)
  • Sort Array in Reverse Order by maintaining Index Association (arsort())
  • Sort Array by maintaining Index Association (asort())
  • Sort an Array by Key (ksort())
  • Sort an Array in Reverse Order (rsort())
  • Sorting an Array (sort())
  • Defining a Function
  • User-defined Function
  • User-defined Function with Parameters
  • Recursive Function
  • Class & Object in PHP