I have stored data in cells like the following: RP1=8, RP2=6, RP3=8, RP4=7 is there a ways that when I call that data to strip out the RP1= portion just leaving the value?
$row = $result->fetch_assoc();
echo $row['rp1'];
echo $row['rp2'];
echo $row['rp3'];
echo $row['rp4'];
print_r($row);
Array ( [id] => 1 [dashboardId] => 1 [memberId] => 1 [rp1] => RP1=8 [rp2] => RP2=6 [rp3] => RP3=8 [rp4] => RP4=7 [teamId] => 1 )
$row['rp1']actually, there's no columnrp1, right?print_r($row);Array ( [id] => 1 [dashboardId] => 1 [memberId] => 1 [rp1] => RP1=8 [rp2] => RP2=6 [rp3] => RP3=8 [rp4] => RP4=7 [teamId] => 1 )print preg_replace('#(RP[0-9]+=)#','','RP8=2');likeprint preg_replace('#(RP[0-9]+=)#','',$row['rp1']);