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 -

What is the difference between data design and data model(ERD) -

ios - Can NSManagedObject conform to NSCoding -