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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -