How can the code be improved to ensure that the getowneroflike() function is executed as intended?

The issue with the current code is that the $like variable is not being passed correctly to the getowneroflike() function. To ensure that the function is executed as intended, we need to pass the $like variable as an argument when calling the function.

// Current code
$like = 123;
getowneroflike();

// Updated code
$like = 123;
getowneroflike($like);