Google Calculator
PHP Code
+ 1 likes
Please Register to submit score.
| Average Score | 6.0 (of 1 scores) |
| Date Added | Mar 04, 2009 |
| Last Updated | Jun 16, 2009 |
| Tags | bot calc calculator php |
Introduction
heres what the output looks like
[12:49][RandomUser] !calc 23*4/56^2/456+8999
[12:49][PHP_Bot] (((23 * 4) / (56^2)) / 456) + 8999 = 8999.00006
full instructions here:
http://www.google.co.uk/intl/en/help/calculator.html
PHP Snippet:
Google Calculator
Posted on Mar 4, 2009 12:52 pm
Posted on Mar 4, 2009 12:52 pm
I like how you've expanded on an existing snippet, but this may be a bit advanced for some users. You've got a handful of include statements for files nobody has access to, so that might confuse some folks. Overall this is a helpful addition.
PHP Snippet:
Google Calculator
Posted on Mar 4, 2009 7:35 pm
Posted on Mar 4, 2009 7:35 pm
nice....
I'd use switch to, if I did do it again....
but what I've done is just had includes for all the files/commands
=)
I'd use switch to, if I did do it again....
but what I've done is just had includes for all the files/commands
=)
PHP Snippet:
Google Calculator
Posted on Mar 8, 2009 10:59 pm
Posted on Mar 8, 2009 10:59 pm
thx for the positive input, ive tidied the snippet up alot aswell. i made in the first couple weeks of learning php. and yeah furby using switch is clean looking and easy on your head.
PHP Snippet:
Google Calculator
Posted on Mar 9, 2009 9:40 am
Posted on Mar 9, 2009 9:40 am
i edited it again and went back to the old str_replace...




