ThomasJSmart
Programmer
- Sep 16, 2002
- 634
Can i use a class the same as i use a function in php?
something like this:
______________
include "file-with-class.php";
$cost = 6;
str_class(); // in class file: global $cost; $cost = $cost.".00";
echo $cost; // 6.00
_________
this is only an example, not what i need it for
thanks, I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
something like this:
______________
include "file-with-class.php";
$cost = 6;
str_class(); // in class file: global $cost; $cost = $cost.".00";
echo $cost; // 6.00
_________
this is only an example, not what i need it for
thanks, I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!