Search found 4 matches

by walkekev
Thu Mar 23, 2006 8:45 am
Forum: PHP - Code
Topic: Need help with preg_replace
Replies: 4
Views: 546

I dont get what you want to do overall. But to make that an array do this <?php $arrPatterns = array("/","<","<",":","(",".","+","?",")",":",">",">","/","s",&qu...
by walkekev
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.

Code: Select all

<?php
echo(split('[*+-/]', '.5');
?>

results in

Code: Select all

5
why is it getting rid of the . before the 5??? please help me
by walkekev
Wed Mar 22, 2006 8:05 pm
Forum: PHP - Code
Topic: radio buttons
Replies: 6
Views: 345

give me an example
by walkekev
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...