Jump to content

Dollops

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Dollops's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Awesome guys, I'll give this a go!! :-)
  2. My code is as below, $totalsx = array( array('days'=> "1", 'total' => "X"), array('days'=> "2", 'total' => "X"), array('days'=> "3", 'total' => "X"), array('days'=> "4", 'total' => "X"), array('days'=> "5", 'total' => "X"), array('days'=> "6", 'total' => "X"), array('days'=> "7", 'total' => "X"), ); foreach ($totalsx as $key =>$totals ){ $totals ['total'] = "Changed value"; } print_r ($totalsx ); When $totalsx prints, the value for 'total' hasnt changed to "Changed Value" - Any ideas why? Chheers
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.