parse a variable in a variable

Discussion in 'PHP' started by l3l00, Jun 5, 2013.

  1. #1
    I have a variable that called an ini file

    I want to echo a variable that uses that variable in it.
     
    l3l00, Jun 5, 2013 IP
  2. l3l00

    l3l00 Greenhorn

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    $getProduct = parse_ini_file('product/products.ini');

    $config = parse_ini_file('product/'. $getProduct[$productID]. '.ini');
     
    l3l00, Jun 5, 2013 IP
  3. l3l00

    l3l00 Greenhorn

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    figured it out. It did not like the variable = ... that I gave it. Did not know ini and php hate () inside an ini file
     
    l3l00, Jun 5, 2013 IP