How to ?
Linux, Apache, MySQL, PHP
4
Posts
2
Posters
0
Views
1
Watching
-
"+1.80 - +2.23%" I want this like $a=+1.80; $b=+2.23%; Now can you tell me please how to do this in php ?
-
udch wrote:
Now can you tell me please how to do this in php ?
I don't like demands, and I'm sure others don't like them either.
$a = 1.8;
$b = 2.23;
$c = $a * (1 + ($b / 100));If at first you don't succeed, you're not Chuck Norris.
Thanks for your help brother.It is value on a variable like :- $a="+1.80 - +2.23%"; I want to extract like $a=+1.80; $b=+2.23%; can we do this in php ?
-
Thanks for your help brother.It is value on a variable like :- $a="+1.80 - +2.23%"; I want to extract like $a=+1.80; $b=+2.23%; can we do this in php ?