Results 1 to 2 of 2
  1. #1
    iannjiua is offline Newbie
    Join Date
    Dec 2011
    Posts
    19

    How can we take advantage of predefined constants ?

    PHP features a large number of built-in, predefined constants holding various useful values. Some of these are always available, while other constants become available when certain PHP extensions are enabled. How can we take advantage of predefined constants ? Your ways ?

  2. #2
    delois is offline Junior WHC Addict
    Join Date
    Aug 2011
    Posts
    109
    I think there are lots of things present in PHP which we can utilize only when we have requirement. Consider the simple example of making currency converter, with help of these constants you can define value to one global parameter to store value of different currency and use it in programming whenever is require.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •