Guest User

Untitled

a guest
Feb 17th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. function sp_echo_site()
  2. {
  3. echo get_site_url();
  4. }
  5.  
  6. I wanted to do the following loop, however of course it doesn't work,
  7. how can i make this work?
  8.  
  9. foreach (get_sites() as $site)
  10. {
  11. $site->sp_echo_site();
  12. }
  13.  
  14. How can i achieve the following result?:
  15.  
  16. animals.com
  17. fruits.com
  18. people.com
Add Comment
Please, Sign In to add comment