p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: SEMI-Variable question


Message #1 by "kyle ketterer" <bige88fan@a...> on Fri, 5 Apr 2002 22:30:05
Ok, here is what I would like to know. I am trying to create directories 
on my server with a simpler use by using variables. 
I would like to make a directory for each value in the variable. This is 
how I would like the format to be:

$dir[1] = "val1";
$dir[2] = "val2";
$dir[3] = "val3";

etc...so on & so on....

Instead of typing it out individually, I want to make a code that does 
somethign like for each $dir[], create a directory in the $dir[]
value. How can I do this? Thanks, 

Kyle. 

  Return to Index