PHP-separate the variables value from the position of character '+' -
i have variable of type varchar having values $pointmoney=356+2311;
pointmoney field in database retreiving value .
now have separte 2 variable $point , $money
where want store $point=356 , $money=2311
$pointmoney=356+2311
.(i.e separate values '+').
if 1 knows similar function pls answer. hope ellaborated understand query . if unclear pls feel comment .
use explode():
$pointmoney = "356+2311"; list($point, $money) = explode('+', $pointmoney);
Comments
Post a Comment