Struggling with array and foreach loop

You can get an array with just the numbers by using array_values($your_array); It will return an array with just the numbers. Is this what you need, or a string with a comma separated list of IDs? If that’s the case, use this: implode(“,”,array_values($your_array)); Hope this helps.

Make an array filterable per hook

If you want to make the array filterable, use apply_filters() and add_filter(). Also, you have to pass the array as an argument to apply_filters() and expect it in your callback that is changing that array. Here is a basic example with slightly more meaningful names: First we have a function that is running over an … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)