php – Problem displaying the values ​​of a table on the front-end

Good night all. I have trouble displaying the values ​​of a table on the front-end. In the background, it appears, but not in front.

My class of service tasks where is the function that returns the array:

public service research () {

global demand in dollars;

$ command = $ this-> connection-> prepare ("select task, id_status from tb_tasks where task like: name");
$ command-> bindValue (: name,% {$ search}% & # 39;);
$ command-> execute ();

$ inf = $ command-> fetchAll (PDO :: FETCH_OBJ);

print_r ($ inf);

}

Here is the part of the code responsible for giving the command in the bank of the taskController class:

elseif ($ action ==> search & # 39;) {

                $ task = new Task ();

$ connection = new Connection ();

$ search = isset ($ _ POST['procura'])? $ _POST['procura'] : "";

$ taskService = new TaskService ($ connection, $ task);
$ return = $ taskService-> browse ();

header (& # 39; location: search_tasks.php? result = 1 & # 39;);
}

And then, at the beginning, I opened the php block and wrote the variable $ return. I've also asked one time to call the classController task:

<? php
return $ global;

print_r ($ return);

?>

Help me please guys