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

script is pulling more then they have....
I have this script for my game where they can change there race. This will cost them 2,500 points. H

Please help understand this code
I noticed the index page on my site was modified this morning and found this code inserted at the bo

question about stripslashes and real_escape_string
im cleaning up an old app that I wrote fixing some of the vulernabilities from attacks.

I hav

updating a single value to multiple non consecutive rows
I need to update the same value to multiple non consecutive rows. I need to add an experation date t

Strip Slashes Help
I've got a script that i've downloaded of the net to edit multiple fields from my sql database, and

form variables from database help.
Hi all,

I would like to have a form that gives you options based on the results of an mysql q

include
Hi I have this way of licensing my PHP application, and I want to know if you guys can answer some q

Limiting uploaded file type
Hi. First post here
I am working on a simple upload script, and I need it to limit the allowed f

SCRIPT ERROR
Here is the CONTACT FORM I made for our website:

<form id="form1" name="

Check premium expire
Hi,

I am making a simple file hosting site and want to check if users premium subscriptions h

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