This page's ID: 12038
From: oslo, NorwayInsane since: Aug 2001
ok i have 11 variables: f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11 and they all contains a value from 0 - 200 i want all the variables that have 0 to change to 'empty' how can i do that
From: Omicron Persei 8Insane since: Oct 2000
why not use an array? $myarray[0]=45; $myarray[1]=176; .... containing your values from 0 to 200. for ($i=0;$i<count($myarray);$i++) { if ($myarray[$i]==0) $myarray[$i]='empty'; }
« Backwards — Onwards »