ifferent case. But if you do a
lot of objects, you can instead of the global scope put all of your
constants into classes, which works just as well. This avoids name
conflicts.
Hope that answered your question.
Tomi Kaistila
PHP Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?
>
>greets
>Zoltán Németh
Precision issue is what I also thought of. But it does seem quite strange to me
that anything with more than two float points would loss precision so badly it
isn't worth letting people to print out.
Here is one workaround:
$a = explode(' '
not much of anything else. PHP still behaves the same way
with the float numbers when you try to look at them. And that is the part
that I wish to understand.
PHP clearly stores a number with more than two decimal points when you call
microtime(). But when you print it, it only shows two.
Why is
do calculations with them, I lose all but the two
digits along the way.
Tomi Kaistila
PHP Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all!
I finally got what I was after, after numerous tips and suggestion.
Thank you for your patience. Special thanks to Bruno Magalhães, Thomas
Goyne, and Davy Obdam.
Thanks again :-)
--
developer & programmer
me tomi kaistila
home http://www.datamike.org
gnupg 0xFA63E4C7
--
PHP Gen
.
--
developer & programmer
me tomi kaistila
home http://www.datamike.org
gnupg 0xFA63E4C7
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
available.
Best regards,
Davy
Tomi Kaistila wrote:
Hi!
Thanks for the idea, hadn't actually thought of it that way. I had
thought of passing objects (instance the db object to the auth object)
by reference, but when thinking that while one class might only need
the help of one other class,
t;;
function Auth ()
{
//Create an instance of you database class
$this->dbObject = new Database($arg1, $arg2, $etc);
}
function doSomething()
{
// Execute a query
$this->dbObject->query($sql);
}
}
?>
I hope this helps
Best regards,
Davy Obdam
Tomi Kaistila wrote:
Hey!
I
g.
P.S Sorry for replying to you Dan, accidentally just went and hit the
reply button. This is a copy of that message to the mailing list.
--
developer & programmer
me tomi kaistila
home http://www.datamike.org
gnupg 0xFA63E4C7
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
or handling.
--
developer & programmer
me tomi kaistila
home http://www.datamike.org
gnupg 0xFA63E4C7
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
w to solve this issue? I've
looked for a solution for some time now, to no result.
My PHP version is 4.3.8.
--
developer & programmer
me tomi kaistila
home http://www.datamike.org
gnupg 0xFA63E4C7
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
11 matches
Mail list logo