File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 4343echo  "<br>The name of the given player is:  "  . $ givenPlayergetName ();
4444echo  "<br>The id of the given player is:  "  . $ givenPlayergetID ();
4545$ friends$ givenPlayergetFriends ();
46- echo  "</br>Friends: " ;
46+ echo  "</br>Friends:   " ;
4747if  (is_array ($ friends
4848	foreach  ($ friendsas  $ friend
4949		echo  "<br> -  "  . $ friendgetName ();
5050	}
5151} else  {
5252	echo  "The player does not have added friends yet. " ;
5353}
54+ $ friendRequests$ givenPlayergetFriendRequests ();
55+ echo  "</br>Friend requests:  " ;
56+ if  (is_array ($ friendRequests
57+ 	foreach  ($ friendRequestsas  $ friendRequests
58+ 		echo  "<br> -  "  . $ friendRequestsgetName ();
59+ 	}
60+ } else  {
61+ 	echo  "The player did not receive any friends requests. " ;
62+ }
5463?> 
5564</body>
5665</html>
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments