|
Posted by Miguel Cruz on 08/06/06 05:38
"Dave Monk" <dmonk@superscape.com> wrote:
> I want to create a small number of variables, $pos1, $pos2 ... $pos5
> within a loop and assign them values from an array, but creating the
> variable names with incrementing numbers, well I've no idea how the PHP
> syntax for it works.
You can do it the way Janwillem suggests, but I would ask why you want
to do this. Why not use an array ($pos[1], $pos[2], etc.)? That's what
they're for.
miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu
Navigation:
[Reply to this message]
|