This topic is locked

variable in field name

6/15/2016 2:31:00 AM
PHPRunner Tips and Tricks
ffrinai author

Hi,

in echo $data["fieldName"]."
";

how is possible to use a variable to specify the field name to have dynamic values?
es.

$variable="field1";

echo $data[$variable]."
";
this is a simple example, i'd like to read fields names stored in a db and use to have theirs values.

thanks.

Fabio
phprunner 8.1 enterprise build 25268