Results 1 to 5 of 5

Thread: What are the Reserved Words in PHP?

  1. #1
    Join Date
    Aug 2006
    Posts
    332

    What are the Reserved Words in PHP?

    Hi friends,
    I have little knowledge about the PHP programming language. So you can consider me as a Rookie. Many times I get confused about the reserved words that are used in programming languages. I know the reserved words in some other language but not in PHP. So please tell me what are the Reserved Words in PHP? Help me as soon as you guys can.!!
    Do not email me asking for tech support. Any private support is billable at $50 an hour.

  2. #2
    Join Date
    Jul 2006
    Posts
    442

    Re: What are the Reserved Words in PHP?

    I think that you should first understand the concepts of the reserved words. There are some words that have special meaning in PHP. These are nothing but the Reserved Words. Some represent objects that look like functions, other constants, and so on, and they are just the language constructors. You can not use them as constants, class names , function names or method names. You can use them as names of variables, but this could cause confusion. Hope that you now understand the concepts of the reserved words that are used in PHP.
    "When they give you ruled paper, write the other way..." J.R.J.

  3. #3
    Join Date
    Jul 2006
    Posts
    286

    Re: What are the Reserved Words in PHP?

    The following are some reserved words of PHP, which you cannot use for the class or the function names. Here are list of some reserved words :
    • abstract
    • and
    • array ()
    • as
    • break
    • Box
    • cfunction
    • catch
    • class
    • clone
    IF you hate me, please don't mention it. I know who hates me and who doesn't. You really do not have to make fun of people....

  4. #4
    Join Date
    Aug 2006
    Posts
    235

    Re: What are the Reserved Words in PHP?

    There are some cases when you need to use a reserved keyword or language construct as a class method name. In this instance, there is very little chance of namespace conflicts. Because in such scenario, the class itself acts as a namespace. The following are some more reserved words that are used in PHP :
    • const
    • continues
    • declare
    • default
    • do
    • else
    • elseif
    • enddeclare
    • endfor
    • endforeach
    3.2 (northwood)
    2gig ram
    ATI AIW X800xt 256mb
    Gigabyte GA-8knxp 875p Chipset
    Optiwrite 8X DVD Burner
    Win XP PRO Sp2 (Works Perfectly)
    2 SATA Raptor 74gig Raid 0
    2 7200 IDE 320gig HD

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    Re: What are the Reserved Words in PHP?

    I have provided you with a constants that are used while compiling :
    • CLASS
    • DIR
    • FILE
    • FUNCTION
    • METHOD
    • NAMESPACE

    And the following are the Language Builders :
    • die ()
    • echo ()
    • empty ()
    • exit ()
    • eval ()

Similar Threads

  1. Netgear DGND3300 does not offer reserved IP
    By FLU|TER in forum Networking & Security
    Replies: 6
    Last Post: 09-03-2012, 08:32 PM
  2. Windows System Reserved 100MB
    By Abdullah30 in forum Operating Systems
    Replies: 5
    Last Post: 13-09-2010, 09:11 AM
  3. Is anybody how to count number of words in MS Words?
    By Sonam Goenka in forum Windows Software
    Replies: 5
    Last Post: 21-01-2010, 02:49 PM
  4. Bios reserved too much memory
    By K88 in forum Motherboard Processor & RAM
    Replies: 3
    Last Post: 28-03-2009, 01:02 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,709,507.68207 seconds with 17 queries