OOP help


Posted on 16th Feb 2014 07:03 pm by admin

okay so i have a class im making it has everything setup i just need to randomize the 2 variables and return which variable that was randomized and output it.


Code: <?php
class hit_chance {
protected $character_miss,$character_attack;


public function __construct($icharacter_miss,$icharacter_attack){
$this->character_miss =$icharacter_miss;
$this->character_attack =$icharacter_attack;

//randomize and output below
}
}?>

No comments posted yet

Your Answer:

Login to answer
294 Like 25 Dislike
Previous forums Next forums
Other forums

foreach loop, assistance request
I would like some guidance on the usage of foreach as I try to parse through a large database and wh

Prevention Help
How can I use PHP or any other language (feel free to move this thread) to prevent users doing scree

FTP issues
Hi all,


I am currently facing some serious problems with a script and really need some ad

Drawing Images in classes
I'm quite new to Object Oriented PHP. What I'm trying to do is draw some images but also have other

Trying to add functions to table
I have this list of characters and I'm trying to figure out what I have to do to put the results of

Changing files over
Just thought I'd start with the new forums looking really nice .

Ok basically I've made this

foreach and array need help combining
Hi guys.

Here's the code

Code: array(
'tag' => 'code',<

upload only text files
hi guys i want to upload only text like like (pdf,note pad and ofiice files) so can any one please t

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

header redirect problems? please help
Ok i am making a site that generates youtube thumbnails and i am generating an image that displays 1

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash