php - Count / Compare an array with other array and get value -


i have scenario in have multiple array.

following array

$main_heading = [main heading 1, main heading 2, main heading 3, main heading 4];      $sub_heading1 = [sub heading1];   $sub_heading2 = [sub heading2, sub heading2];   $sub_heading3 = [sub heading3, sub heading3, sub heading3];   $sub_heading4 = [sub heading4, sub heading4, sub heading4, sub heading4]; 

i use implode $subheading , convert in 1 array shown following

$sub_heading=[sub heading1 - sub heading2, sub heading2 -  sub heading3, sub heading3, sub heading3 - sub heading4, sub heading4, sub heading4, sub heading4 ]; 

now have 2 array

$main_headin_score = [good, strong, adequate, need improvements];  $sub_heaing_score = [good, strong, adequate, need improvements, good, strong, adequate, need improvements, good, strong]; 

following pic show how want save data in enter image description here


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -