How to Use Double Variables in PHP Scripts
I’m coming with a small piece of code that contains a sample of double variable usage. Let’s take we have a script that transmits lots of parameters, named activ1, activ2, activ3… activn. How should we work with them? A simple solution is pasted below. for ($i=0; $i<10; $i++) { $varname=”aktiv”.$i; if (isset($$varname)) { // Do anything you want… Read More »