I want to use array element as a variable in for loop where $arr1[$i] is written it is not working please help me ....
<!DOCTYPE html>
<html>
<body>
<?php
$shivam=12;
$raju=11;
$rakesh=10;
$arr1=array('shivam','raju','rakesh');
for ($x = 0; $x < 3; $x++) {
echo "The name is: $$arr1[$x] <br>";
}
?>
</body>
</html>
";` – Lawrence Cherone Sep 19 '22 at 16:47