came across this in the challanges can anyone explain it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

came across this in the challanges can anyone explain it?

<?php $solo = array("learn" => "solo"); $learn = array_flip($solo); ${$solo["learn"].$learn["solo"]} = 1; echo $learnsolo ?>

7th Sep 2017, 11:39 AM
Elad Goldenberg
Elad Goldenberg - avatar
1 Answer
0
I also don't get the use of those curly brackets.. there is nothing in the tutorial about them
7th Sep 2017, 11:41 AM
Elad Goldenberg
Elad Goldenberg - avatar