php create array with variable code example
Example 1: how to store array in variable php
$myArray = array("http://www.marleenvanlook.be/admin.php","http://www.marleenvanlook.be/checklogin.php","etc");
$i = 0;
foreach($myArray as $value){
${'something'.$i} = $value;
$i++;
}
echo $something0; //http://www.marleenvanlook.be/admin.php
Example 2: variable args php
function some_function(...$args): void {
$val1 = $args[0];
// Access as normal index array
}