Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2003
    Posts
    79
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question What are these variables?

    Hey I have noticed that in a lot of PHP scripts, HTML/CSS code is filled with values that look like this: {a_value). for example an html code for font would look like this:

    <font color="{font_color}">

    what are these variables, and how do I use them?

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Well they are not variables per say. Most likely they are markers for some kind of template system. When the file gets parsed the template system replaces those markers with the actual values that are usually provided by some configuration file that the end user modifies.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

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