Hi,
I am a little confused as how to do this with PHP.
I would like to create some variables on the fly within a While loop and have this so far.
<?php
$extended = "3^3^4^4^1|rrsrw|3|2|mth_scrn|1|3";
$extCount = count($pieces = explode("|", $extended));
$y = "1";
$z = "0";
$varName="ext_";
while($y <= $extCount){
// I need to create new variables call $ext_ with number appended to the end
$varName eval($y) = $pieces[$z]; // How do I create this variable on the fly?
$y++;
$z++;
}
?>
I used the EVAL for this purpose with Flash Actionscript (I think!) but cant figure out the correct syntax in PHP - and the documentation has confused me!!!
Any pointers would be much appreciated,
GiantComm...