Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[help] very simple php question

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
O-RLY
Expert Cheater
Reputation: 0

Joined: 10 Apr 2007
Posts: 170

PostPosted: Fri Jun 15, 2007 7:37 am    Post subject: [help] very simple php question Reply with quote

Code:
<?

class Yoske{
function show(){
echo'i am fat!';
}
}
$oclass = new Yoske;

echo $oclass->show;
?>


Can someone explain me this code?
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Fri Jun 15, 2007 7:41 am    Post subject: Reply with quote

Um, if your learning php, shouldn't the book or website tell you what each command does.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
O-RLY
Expert Cheater
Reputation: 0

Joined: 10 Apr 2007
Posts: 170

PostPosted: Fri Jun 15, 2007 7:44 am    Post subject: Reply with quote

I know only this:
Code:
<?

class Yoske{ \\opens new class, named Yoske
function show(){ \\what is it..?
echo'i am fat!'; \\printing i am fat!
}
}
$oclass = new Yoske; \\what is it?

echo $oclass->show; \\what is it?
?>
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Fri Jun 15, 2007 7:46 am    Post subject: Reply with quote

Ok, well where did you get that code?
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
O-RLY
Expert Cheater
Reputation: 0

Joined: 10 Apr 2007
Posts: 170

PostPosted: Fri Jun 15, 2007 7:53 am    Post subject: Reply with quote

i've saw it on a site and i wanna learn what its doing..
are you going help me?


Last edited by O-RLY on Fri Jun 15, 2007 7:57 am; edited 1 time in total
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Fri Jun 15, 2007 7:56 am    Post subject: Reply with quote

I don't know php, go back to the site and it should explain it.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
O-RLY
Expert Cheater
Reputation: 0

Joined: 10 Apr 2007
Posts: 170

PostPosted: Fri Jun 15, 2007 8:02 am    Post subject: Reply with quote

try google for me some explains for the commands I dont know =\
I already search for didn't found anything..
Back to top
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Fri Jun 15, 2007 8:05 am    Post subject: Reply with quote

Code:

<?
class Yoske{ //creates a class called Yoske
function show(){  //creates a function in the class Yoske called show
echo 'you are fat!';  //echos to the html you are fat!
}  //ends the function show
}  //ends the class Yoske

$oclass = new Yoske; //the script starts running here. It declares a new variable called oclass and assigns it a new instance of the Yoske class.

echo $oclass->show; //this calls the function show in the instance of the Yoske class. This will cause you are fat to be echoed to the html page.
?>

_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites