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

Is STL important?
I'm just starting programming and I've made it until the Standart Template Library. But the chapter

foreach iterator
Hi Guys
Does the foreach loop have an inbuilt iterator ?

Passing JS to PHP
So I have the following
Code: <?php
getdetails(?><script type="text/

Problems with strings containing
Hey all,

I have encountered something strange in a script. I am trying to write an XML heade

Multiple includes losing variables
Hey all,

just starting out w php and ran into a problem pretty quickly. I'm
including seve

Image loading
Hi Developers,

I'm trying to display an image from images/image.gif getting the url from mysq

Table Control
Hi Guru's,

I've created a Module pool program, which contains the Table Control.

Ignore html and bbcode?
I've created a function to limit the amount of text according to the amount of words.

However

PHP Upload issue
Hi guys,

I have stumble across an interesting issue with my script and is doing my head in.

Extracting URL pointer within XML tag
Hi.

I'm trying to extract text between two quotation marks in XML. For example, I want to ex

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