Page 1 of 1

[SOLVED] An array question

Posted: Wed Feb 11, 2004 11:46 pm
by John Cartwright
How would I give all the variables in this array

$de_dust2 = array('$de_dust2_a', '$de_dust2_b', '$de_dust2_c', '$de_dust2_d');

a value of 0??

TY

Posted: Thu Feb 12, 2004 12:15 am
by penguinboy

Code: Select all

<?php
foreach($de_dust2 as $key => $value)
  $de_dust2[$key]=0;
?>

Posted: Thu Feb 12, 2004 12:29 am
by John Cartwright
yay ty