WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('in-progress') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('pending') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

Count all the values of an array in php | Loop and Break

Count all the values of an array in php

The array_count_values() function counts all the values of an array. It returns an associative array, where the keys are the original array’s values, and the values are the number of occurrences.

Example

<!DOCTYPE html>
<html>
<body>

<?php
	$arr=array("Tubes","Fans","Tubes","Z","Tubes","Fans","Z");
	print_r(array_count_values($arr));
?>

</body>
</html>

Output

Array ( [Tubes] => 3 [Fans] => 2 [Z] => 2 )
Share

You may also like...