Results 1 to 2 of 2

Thread: PHP Variables

  1. #1
    Brownchris is offline Senior Member
    Join Date
    Dec 2009
    Posts
    331
    Rep Power
    3

    Default PHP Variables

    What are the PHP Variables?

    I am learning PHP. I do not understand why the variables are used in PHP? Can anyone give details me what are the PHP variables? Also if possible, give me a few example of PHP that is using the variable. Thanks in advanced.

  2. #2
    Millerjames is offline Senior Member
    Join Date
    Dec 2009
    Posts
    331
    Rep Power
    3

    Default

    1) You will have to follow a few rules when writing variables in PHP. I have already mentioned the names of rules that are used for variables:

    • A variable name can only control alpha-numeric typeset and underscore. Like a-z, A-Z, 0-9, and _.

    • A changeable name in PHP should begin with letter or an underscore "_".

    • A variable name should not consist of spaces. If variable name is more than one word, it must be divided with an underscore. Like if you would like variable my number, you can write it as $my_number and in capitalization as $my_Number.

Similar Threads

  1. Scripting Variables
    By LewisClark in forum Programming
    Replies: 2
    Last Post: 02-16-2010, 05:08 PM
  2. Management variables in a multithreaded dll?
    By enrich444 in forum Programming
    Replies: 8
    Last Post: 10-17-2009, 11:00 AM
  3. Using Variables in c++
    By Draven Broad in forum Programming
    Replies: 0
    Last Post: 10-01-2009, 09:57 AM
  4. Declaring Variables in C++
    By Kadarius Brearley in forum Programming
    Replies: 0
    Last Post: 09-30-2009, 12:46 PM
  5. Programming Fundamentals :- Variables
    By yenkin in forum Programming
    Replies: 0
    Last Post: 10-31-2008, 07:31 AM

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
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48