Jump to content

Brain Fart...


SharkBait

Recommended Posts

For some reason I cannot think today.

 

<?php

class {

  function meh() {

     $blah = $this->profile();
     echo $blah->weirdname;
  }

  function profile() {
     // this is where I'm stuck..
     // how do I properly set weirdname?
  }

}
?>

 

It's been a while since I've played with classes (been doing other things) so how do I set up the function profile() to return a value for weirdname.

 

 

Link to comment
https://forums.phpfreaks.com/topic/211551-brain-fart/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.