S
S
Sasha Misnik2015-10-30 19:48:19
PHP
Sasha Misnik, 2015-10-30 19:48:19

What does 2 dollar signs mean?

foreach($vars as $key => $values){	
    $$key = $values;
  }

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
Cat Anton, 2015-10-30
@Razorvin

variable variables

D
Dmitry, 2015-10-30
@thewind

Assigning a value to a variable whose name is equal to the value of $key

S
Sergey, 2015-10-30
Protko @Fesor

the same as
${$key}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question