hi list
I try to define page variables out of an array:

$skinsection_ptv_arr = array(
"SectionA" => 1,
"SectionB" => 0,
...
);

foreach ( $skinsection_ptv_arr as $ptvname => $val ) {
  $FmtPV['${$ptvname}]' = "'$val'";
  }

I cant figure out the right syntax for the variable name in $FmtPV,
anyone a suggestion

thanks nos

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to