A simple implode can be done like this:
$imploded_arr = implode(',', $abc);
That means that you implode the array values and you "glue" them with coma. If you want the combination single-quote/comma/single-quote you should use yours. The problem is in your query. Like
does not work like this. The percentage symbol (wildcard) goes either in the beginning or at the end or both.
So if you want to use LIKE in your query, as it is not really clear what you want to do i see a few options.
Either in your php code you make a new string which concatenated your values like:
$NewValue=$imploded_arr.$godz
And then you try
r3.meta_key LIKE '%$NewValue%'
Also in your example i see that you are using a wrong variable name inside like check this out as well. You are using $imploded
instead of $imploded_arr
Another option is to use two like and then handle the results somethlike like this:
r3.meta_key LIKE '$imploded_arr%' and r3.meta_key LIKE '%$godz'
That means that you will check for values that start with the value of your $imploded_arr string and end with the value of the $godz string.
Those are a few options i can see but if you provide more info like whole query or a bigger part of your code we can be more specific.