How to gather two variables in array_count_values?
$help = explode(PHP_EOL, $textearea);
$help2 = explode(PHP_EOL, $textearea2);
$australianbrother = array_count_values($help, $help2);
How to gather two variables in array_count_values?
$help = explode(PHP_EOL, $textearea);
$help2 = explode(PHP_EOL, $textearea2);
$australianbrother = array_count_values($help, $help2);
=>
$australianbrother = array_count_values($help + $help2);
Thank you for responding, but unfortunately it didn’t work is text.
Define ‘didnt work’.
Show us the output of the two arrays, and what you want.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.