Using variables to populate PHP arrays -


for php, possible this:

array( $designationvar => $datavar ); 

with idea being can dynamically create array based on values present

yes why not , equivalent this

$arr = array();  $arr[$keyname] = $value; 

in case

$arr = array(); $arr[$designationvar] = $datavar; 

Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -