Search found 4 matches
- Thu Mar 23, 2006 8:45 am
- Forum: PHP - Code
- Topic: Need help with preg_replace
- Replies: 4
- Views: 546
- Wed Mar 22, 2006 8:33 pm
- Forum: PHP - Code
- Topic: Basic Math solver from a string help!
- Replies: 2
- Views: 145
ok, I know what is causing it.
results in
why is it getting rid of the . before the 5??? please help me
Code: Select all
<?php
echo(split('[*+-/]', '.5');
?>results in
Code: Select all
5- Wed Mar 22, 2006 8:05 pm
- Forum: PHP - Code
- Topic: radio buttons
- Replies: 6
- Views: 345
- Wed Mar 22, 2006 7:57 pm
- Forum: PHP - Code
- Topic: Basic Math solver from a string help!
- Replies: 2
- Views: 145
Basic Math solver from a string help!
I am writing a basic math solver that will follow order of operations. my problem comes in when numbers with numbers after the decimal come into play with multiplication and division. For example <?php echo(solve("2/3*6")); echo('<br>'); echo(solve(".5*10")); function solve($temp...